[COMPONENT][Conversation] Sort conversation correctly
This commit is contained in:
parent
35f3781a32
commit
46c4bd9099
|
@ -62,8 +62,11 @@ class Conversation extends FeedController
|
||||||
$page_title = _m('Conversation');
|
$page_title = _m('Conversation');
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'_template' => 'collection/notes.html.twig',
|
'_template' => 'collection/notes.html.twig',
|
||||||
'notes' => $this->query(query: "note-conversation:{$conversation_id}")['notes'] ?? [],
|
'notes' => $this->query(
|
||||||
|
query: "note-conversation:{$conversation_id}",
|
||||||
|
note_order_by: ['note.created' => 'ASC', 'note.id' => 'ASC'],
|
||||||
|
)['notes'] ?? [],
|
||||||
'should_format' => false,
|
'should_format' => false,
|
||||||
'page_title' => $page_title,
|
'page_title' => $page_title,
|
||||||
'notes_feed_title' => (new Heading(1, [], $page_title)),
|
'notes_feed_title' => (new Heading(1, [], $page_title)),
|
||||||
|
@ -138,9 +141,12 @@ class Conversation extends FeedController
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'_template' => 'conversation/mute.html.twig',
|
'_template' => 'conversation/mute.html.twig',
|
||||||
'notes' => $this->query(query: "note-conversation:{$conversation_id}")['notes'] ?? [],
|
'notes' => $this->query(
|
||||||
'is_muted' => $is_muted,
|
query: "note-conversation:{$conversation_id}",
|
||||||
'form' => $form->createView(),
|
note_order_by: ['note.created' => 'ASC', 'note.id' => 'ASC'],
|
||||||
|
)['notes'] ?? [],
|
||||||
|
'is_muted' => $is_muted,
|
||||||
|
'form' => $form->createView(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user