diff --git a/src/Entity/Favourite.php b/plugins/Favourite/Entity/Favourite.php similarity index 86% rename from src/Entity/Favourite.php rename to plugins/Favourite/Entity/Favourite.php index 53bd64655b..60887ef2ae 100644 --- a/src/Entity/Favourite.php +++ b/plugins/Favourite/Entity/Favourite.php @@ -17,7 +17,7 @@ // along with GNU social. If not, see . // }}} -namespace App\Entity; +namespace Plugin\Favourite\Entity; use App\Core\Entity; use DateTimeInterface; @@ -81,8 +81,8 @@ class Favourite extends Entity return [ 'name' => 'favourite', 'fields' => [ - 'note_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Note.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'note that is the favorite of'], - 'gsactor_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'GSActor.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'actor who favourited this note'], // note: formerly referenced notice.id, but we can now record remote users' favorites + 'note_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'App\Entity\Note.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'note that is the favorite of'], + 'gsactor_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'App\Entity\GSActor.id', 'multiplicity' => 'one to one', 'not null' => true, 'description' => 'actor who favourited this note'], // note: formerly referenced notice.id, but we can now record remote users' favorites 'created' => ['type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'], 'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'], ],