[Actor] Refactor GSActor into Actor
This commit is contained in:
@@ -32,7 +32,7 @@ class Favourite
|
||||
$notes = DB::dql(
|
||||
'select n from App\Entity\Note n, Plugin\Favourite\Entity\Favourite f ' .
|
||||
'where n.id = f.note_id ' .
|
||||
'and f.gsactor_id = :id ' .
|
||||
'and f.actor_id = :id ' .
|
||||
'order by f.created DESC',
|
||||
['id' => $id]
|
||||
);
|
||||
@@ -64,8 +64,8 @@ class Favourite
|
||||
{
|
||||
$notes = DB::dql('select n from App\Entity\Note n, Plugin\Favourite\Entity\Favourite f ' .
|
||||
'where n.id = f.note_id ' .
|
||||
'and f.gsactor_id != :id ' .
|
||||
'and n.gsactor_id = :id ' .
|
||||
'and f.actor_id != :id ' .
|
||||
'and n.actor_id = :id ' .
|
||||
'order by f.created DESC' ,
|
||||
['id' => $id]
|
||||
);
|
||||
|
Reference in New Issue
Block a user