diff --git a/src/Entity/Attention.php b/src/Entity/Attention.php index 0c12c0a963..88e314f117 100644 --- a/src/Entity/Attention.php +++ b/src/Entity/Attention.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Avatar.php b/src/Entity/Avatar.php index 8266d8a785..87e0f3cfcb 100644 --- a/src/Entity/Avatar.php +++ b/src/Entity/Avatar.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Config.php b/src/Entity/Config.php index e989b6a5bf..4b24053228 100644 --- a/src/Entity/Config.php +++ b/src/Entity/Config.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ConfirmAddress.php b/src/Entity/ConfirmAddress.php index 26fe73df88..198c6a2f45 100644 --- a/src/Entity/ConfirmAddress.php +++ b/src/Entity/ConfirmAddress.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Consumer.php b/src/Entity/Consumer.php index 78fa7da276..2b34cf3675 100644 --- a/src/Entity/Consumer.php +++ b/src/Entity/Consumer.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Conversation.php b/src/Entity/Conversation.php index 55bf7f349f..ace4a5350c 100644 --- a/src/Entity/Conversation.php +++ b/src/Entity/Conversation.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/File.php b/src/Entity/File.php index a5b964a383..740e40c1d3 100644 --- a/src/Entity/File.php +++ b/src/Entity/File.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/FileRedirection.php b/src/Entity/FileRedirection.php index aaa46aeb2f..3382ee1403 100644 --- a/src/Entity/FileRedirection.php +++ b/src/Entity/FileRedirection.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/FileThumbnail.php b/src/Entity/FileThumbnail.php index d30c7916a0..ce7d248b15 100644 --- a/src/Entity/FileThumbnail.php +++ b/src/Entity/FileThumbnail.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/FileToPost.php b/src/Entity/FileToPost.php index 2cfcbd14e5..f92adb853f 100644 --- a/src/Entity/FileToPost.php +++ b/src/Entity/FileToPost.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ForeignLink.php b/src/Entity/ForeignLink.php index 2981526006..9e6eb0f046 100644 --- a/src/Entity/ForeignLink.php +++ b/src/Entity/ForeignLink.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ForeignService.php b/src/Entity/ForeignService.php index 8e64542926..97c0c685f1 100644 --- a/src/Entity/ForeignService.php +++ b/src/Entity/ForeignService.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ForeignSubscription.php b/src/Entity/ForeignSubscription.php index 6c5c953140..d7a3d45aab 100644 --- a/src/Entity/ForeignSubscription.php +++ b/src/Entity/ForeignSubscription.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ForeignUser.php b/src/Entity/ForeignUser.php index a00c8e8e15..2c7b7a6782 100644 --- a/src/Entity/ForeignUser.php +++ b/src/Entity/ForeignUser.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/GroupAlias.php b/src/Entity/GroupAlias.php index fdda67a72d..af66f612a6 100644 --- a/src/Entity/GroupAlias.php +++ b/src/Entity/GroupAlias.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/GroupBlock.php b/src/Entity/GroupBlock.php index 1c17464c19..ef262e92db 100644 --- a/src/Entity/GroupBlock.php +++ b/src/Entity/GroupBlock.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/GroupInbox.php b/src/Entity/GroupInbox.php index fc08908c62..4cfba37425 100644 --- a/src/Entity/GroupInbox.php +++ b/src/Entity/GroupInbox.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/GroupJoinQueue.php b/src/Entity/GroupJoinQueue.php index cfad97f130..33f42f1cd2 100644 --- a/src/Entity/GroupJoinQueue.php +++ b/src/Entity/GroupJoinQueue.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/GroupMember.php b/src/Entity/GroupMember.php index ec5d2bae2c..a5bf1c2e3b 100644 --- a/src/Entity/GroupMember.php +++ b/src/Entity/GroupMember.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Invitation.php b/src/Entity/Invitation.php index 6765028ea1..5a5a653e58 100644 --- a/src/Entity/Invitation.php +++ b/src/Entity/Invitation.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/LocalGroup.php b/src/Entity/LocalGroup.php index 6825483b5a..504fc518d0 100644 --- a/src/Entity/LocalGroup.php +++ b/src/Entity/LocalGroup.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/LocationNamespace.php b/src/Entity/LocationNamespace.php index 34cc7eb70f..8786b61bf4 100644 --- a/src/Entity/LocationNamespace.php +++ b/src/Entity/LocationNamespace.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/LoginToken.php b/src/Entity/LoginToken.php index 6cf8ae23e9..dc25468256 100644 --- a/src/Entity/LoginToken.php +++ b/src/Entity/LoginToken.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Nonce.php b/src/Entity/Nonce.php index 4e63b45f30..c47a785a1b 100644 --- a/src/Entity/Nonce.php +++ b/src/Entity/Nonce.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Notice.php b/src/Entity/Notice.php new file mode 100644 index 0000000000..78d43a6b50 --- /dev/null +++ b/src/Entity/Notice.php @@ -0,0 +1,94 @@ +. +// }}} + +namespace App\Entity; + +/** + * Entity for notices + * + * @category DB + * @package GNUsocial + * + * @author Zach Copley + * @copyright 2010 StatusNet Inc. + * @author Mikael Nordfeldth + * @copyright 2009-2014 Free Software Foundation, Inc http://www.fsf.org + * @author Hugo Sales + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ +class Notice +{ + // AUTOCODE BEGIN + + // AUTOCODE END + + public static function schemaDef(): array + { + $def = [ + 'fields' => [ + 'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'], + 'profile_id' => ['type' => 'int', 'not null' => true, 'description' => 'who made the update'], + 'uri' => ['type' => 'varchar', 'length' => 191, 'description' => 'universally unique identifier, usually a tag URI'], + 'content' => ['type' => 'text', 'description' => 'update content', 'collate' => 'utf8mb4_general_ci'], + 'rendered' => ['type' => 'text', 'description' => 'HTML version of the content'], + 'url' => ['type' => 'varchar', 'length' => 191, 'description' => 'URL of any attachment (image, video, bookmark, whatever)'], + 'created' => ['type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date this record was created'], + 'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'], + 'reply_to' => ['type' => 'int', 'description' => 'notice replied to (usually a guess)'], + 'is_local' => ['type' => 'int', 'size' => 'tiny', 'default' => 0, 'description' => 'notice was generated by a user'], + 'source' => ['type' => 'varchar', 'length' => 32, 'description' => 'source of comment, like "web", "im", or "clientname"'], + 'conversation' => ['type' => 'int', 'description' => 'the local numerical conversation id'], + 'repeat_of' => ['type' => 'int', 'description' => 'notice this is a repeat of'], + 'object_type' => ['type' => 'varchar', 'length' => 191, 'description' => 'URI representing activity streams object type', 'default' => null], + 'verb' => ['type' => 'varchar', 'length' => 191, 'description' => 'URI representing activity streams verb', 'default' => 'http://activitystrea.ms/schema/1.0/post'], + 'scope' => ['type' => 'int', + 'description' => 'bit map for distribution scope; 0 = everywhere; 1 = this server only; 2 = addressees; 4 = groups; 8 = followers; 16 = messages; null = default', ], + ], + 'primary key' => ['id'], + 'unique keys' => [ + 'notice_uri_key' => ['uri'], + ], + 'foreign keys' => [ + 'notice_profile_id_fkey' => ['profile', ['profile_id' => 'id']], + 'notice_reply_to_fkey' => ['notice', ['reply_to' => 'id']], + 'notice_conversation_fkey' => ['conversation', ['conversation' => 'id']], // note... used to refer to notice.id + 'notice_repeat_of_fkey' => ['notice', ['repeat_of' => 'id']], // @fixme: what about repeats of deleted notices? + ], + 'indexes' => [ + 'notice_created_id_is_local_idx' => ['created', 'id', 'is_local'], + 'notice_profile_id_idx' => ['profile_id', 'created', 'id'], + 'notice_is_local_created_profile_id_idx' => ['is_local', 'created', 'profile_id'], + 'notice_repeat_of_created_id_idx' => ['repeat_of', 'created', 'id'], + 'notice_conversation_created_id_idx' => ['conversation', 'created', 'id'], + 'notice_object_type_idx' => ['object_type'], + 'notice_verb_idx' => ['verb'], + 'notice_profile_id_verb_idx' => ['profile_id', 'verb'], + 'notice_url_idx' => ['url'], // Qvitter wants this + 'notice_replyto_idx' => ['reply_to'], + ], + ]; + + if (common_config('search', 'type') == 'fulltext') { + $def['fulltext indexes'] = ['content' => ['content']]; + } + + return $def; + } +} diff --git a/src/Entity/NoticeLocation.php b/src/Entity/NoticeLocation.php index f3a7502f5c..2e8c0cce92 100644 --- a/src/Entity/NoticeLocation.php +++ b/src/Entity/NoticeLocation.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/NoticePrefs.php b/src/Entity/NoticePrefs.php index b4edf2bb6c..790ee4cf93 100644 --- a/src/Entity/NoticePrefs.php +++ b/src/Entity/NoticePrefs.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/NoticeSource.php b/src/Entity/NoticeSource.php index 5ae316eb83..371bc16688 100644 --- a/src/Entity/NoticeSource.php +++ b/src/Entity/NoticeSource.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/NoticeTag.php b/src/Entity/NoticeTag.php index ac5c5b2897..ba73132ea1 100644 --- a/src/Entity/NoticeTag.php +++ b/src/Entity/NoticeTag.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/OauthApplication.php b/src/Entity/OauthApplication.php index ab44404cf6..2e4fd15888 100644 --- a/src/Entity/OauthApplication.php +++ b/src/Entity/OauthApplication.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/OauthApplicationUser.php b/src/Entity/OauthApplicationUser.php index d576d9cb87..61345ee1b4 100644 --- a/src/Entity/OauthApplicationUser.php +++ b/src/Entity/OauthApplicationUser.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/OauthTokenAssociation.php b/src/Entity/OauthTokenAssociation.php index 9987c143c4..fa0090d0d0 100644 --- a/src/Entity/OauthTokenAssociation.php +++ b/src/Entity/OauthTokenAssociation.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/OldSchoolPrefs.php b/src/Entity/OldSchoolPrefs.php index c543f1c315..7f3c0e247b 100644 --- a/src/Entity/OldSchoolPrefs.php +++ b/src/Entity/OldSchoolPrefs.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Profile.php b/src/Entity/Profile.php new file mode 100644 index 0000000000..f1a0485174 --- /dev/null +++ b/src/Entity/Profile.php @@ -0,0 +1,75 @@ +. +// }}} + +namespace App\Entity; + +/** + * Entity for user profiles + * + * @category DB + * @package GNUsocial + * + * @author Zach Copley + * @copyright 2010 StatusNet Inc. + * @author Mikael Nordfeldth + * @copyright 2009-2014 Free Software Foundation, Inc http://www.fsf.org + * @author Hugo Sales + * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org + * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later + */ +class Profile +{ + // AUTOCODE BEGIN + + // AUTOCODE END + + public static function schemaDef(): array + { + $def = [ + 'description' => 'local and remote users have profiles', + 'fields' => [ + 'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'], + 'nickname' => ['type' => 'varchar', 'length' => 64, 'not null' => true, 'description' => 'nickname or username', 'collate' => 'utf8mb4_general_ci'], + 'fullname' => ['type' => 'text', 'description' => 'display name', 'collate' => 'utf8mb4_general_ci'], + 'profileurl' => ['type' => 'text', 'description' => 'URL, cached so we dont regenerate'], + 'homepage' => ['type' => 'text', 'description' => 'identifying URL', 'collate' => 'utf8mb4_general_ci'], + 'bio' => ['type' => 'text', 'description' => 'descriptive biography', 'collate' => 'utf8mb4_general_ci'], + 'location' => ['type' => 'text', 'description' => 'physical location', 'collate' => 'utf8mb4_general_ci'], + 'lat' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'latitude'], + 'lon' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'longitude'], + 'location_id' => ['type' => 'int', 'description' => 'location id if possible'], + 'location_ns' => ['type' => 'int', 'description' => 'namespace for location'], + 'created' => ['type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date this record was created'], + 'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'], + ], + 'primary key' => ['id'], + 'indexes' => [ + 'profile_nickname_idx' => ['nickname'], + ], + ]; + + // Add a fulltext index + + if (common_config('search', 'type') == 'fulltext') { + $def['fulltext indexes'] = ['nickname' => ['nickname', 'fullname', 'location', 'bio', 'homepage']]; + } + + return $def; + } +} diff --git a/src/Entity/ProfileBlock.php b/src/Entity/ProfileBlock.php index 56bfd1ffd5..5b82cf4315 100644 --- a/src/Entity/ProfileBlock.php +++ b/src/Entity/ProfileBlock.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ProfileList.php b/src/Entity/ProfileList.php index ad5e551e31..68713d0655 100644 --- a/src/Entity/ProfileList.php +++ b/src/Entity/ProfileList.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ProfilePrefs.php b/src/Entity/ProfilePrefs.php index 0aa7ffc09f..dc95346b61 100644 --- a/src/Entity/ProfilePrefs.php +++ b/src/Entity/ProfilePrefs.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ProfileRole.php b/src/Entity/ProfileRole.php index bf7f570227..00603e2b89 100644 --- a/src/Entity/ProfileRole.php +++ b/src/Entity/ProfileRole.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ProfileTag.php b/src/Entity/ProfileTag.php index 00ac7b9105..bbb9c391bd 100644 --- a/src/Entity/ProfileTag.php +++ b/src/Entity/ProfileTag.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/ProfileTagSubscription.php b/src/Entity/ProfileTagSubscription.php index b7f5ab8278..bbc0b98db8 100644 --- a/src/Entity/ProfileTagSubscription.php +++ b/src/Entity/ProfileTagSubscription.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/QueueItem.php b/src/Entity/QueueItem.php index 0a38076c81..6ed31b2e15 100644 --- a/src/Entity/QueueItem.php +++ b/src/Entity/QueueItem.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/RelatedGroup.php b/src/Entity/RelatedGroup.php index 52377ba0b9..f4ba2dc8ac 100644 --- a/src/Entity/RelatedGroup.php +++ b/src/Entity/RelatedGroup.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/RememberMe.php b/src/Entity/RememberMe.php index bb781e54dc..21752011d7 100644 --- a/src/Entity/RememberMe.php +++ b/src/Entity/RememberMe.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Reply.php b/src/Entity/Reply.php index 91f016450e..8650a01926 100644 --- a/src/Entity/Reply.php +++ b/src/Entity/Reply.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/SchemaVersion.php b/src/Entity/SchemaVersion.php index 203f29e15a..1319f57458 100644 --- a/src/Entity/SchemaVersion.php +++ b/src/Entity/SchemaVersion.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Session.php b/src/Entity/Session.php index d8ea561303..319b846ba2 100644 --- a/src/Entity/Session.php +++ b/src/Entity/Session.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/SmsCarrier.php b/src/Entity/SmsCarrier.php index 4e5c91aec5..6e2ea7cb6f 100644 --- a/src/Entity/SmsCarrier.php +++ b/src/Entity/SmsCarrier.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Subscription.php b/src/Entity/Subscription.php index da017f7d5e..abfda76ebe 100644 --- a/src/Entity/Subscription.php +++ b/src/Entity/Subscription.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/SubscriptionQueue.php b/src/Entity/SubscriptionQueue.php index 6f495033a6..68147a2a82 100644 --- a/src/Entity/SubscriptionQueue.php +++ b/src/Entity/SubscriptionQueue.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/Token.php b/src/Entity/Token.php index fc8146309a..1548b5acdd 100644 --- a/src/Entity/Token.php +++ b/src/Entity/Token.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/UnavailableStatusNetwork.php b/src/Entity/UnavailableStatusNetwork.php index 9fe4e6e839..61b428cb93 100644 --- a/src/Entity/UnavailableStatusNetwork.php +++ b/src/Entity/UnavailableStatusNetwork.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/User.php b/src/Entity/User.php index 5fdd461828..13d92fe162 100644 --- a/src/Entity/User.php +++ b/src/Entity/User.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/UserGroup.php b/src/Entity/UserGroup.php index 03afdcc9e1..823af4ab1a 100644 --- a/src/Entity/UserGroup.php +++ b/src/Entity/UserGroup.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/UserImPrefs.php b/src/Entity/UserImPrefs.php index 5a9b10a8f9..c5b9e6c63b 100644 --- a/src/Entity/UserImPrefs.php +++ b/src/Entity/UserImPrefs.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/UserLocationPrefs.php b/src/Entity/UserLocationPrefs.php index 0bfac53788..03aac32d44 100644 --- a/src/Entity/UserLocationPrefs.php +++ b/src/Entity/UserLocationPrefs.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/UserUrlshortenerPrefs.php b/src/Entity/UserUrlshortenerPrefs.php index 01cb6ae8eb..fb4ad15c5e 100644 --- a/src/Entity/UserUrlshortenerPrefs.php +++ b/src/Entity/UserUrlshortenerPrefs.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity; diff --git a/src/Entity/UserUsername.php b/src/Entity/UserUsername.php index 09b387a283..697dac955c 100644 --- a/src/Entity/UserUsername.php +++ b/src/Entity/UserUsername.php @@ -1,21 +1,21 @@ . - }}} */ +// {{{ License +// This file is part of GNU social - https://www.gnu.org/software/soci +// +// GNU social is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as publ +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// GNU social is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public Li +// along with GNU social. If not, see . +// }}} namespace App\Entity;