forked from GNUsocial/gnu-social
[CARDS][Note] AppendCardNote event overhaul
[PLUGINS][Favourite] Added complementary information on user action [COMPONENTS][Conversation] Fixed AppendCardNote issue where cached query would only act on Notes with depth > 1
This commit is contained in:
@@ -354,7 +354,7 @@ class Note extends Entity
|
||||
*/
|
||||
public function getReplies(): array
|
||||
{
|
||||
return Cache::get('note-replies-' . $this->getId(), fn () => DB::dql('select n from note n where n.reply_to = :id', ['id' => $this->getId()]));
|
||||
return DB::findBy('note', ['reply_to' => $this->getId()], order_by: ['created' => 'DESC', 'id' => 'DESC']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user