. // }}} /** * @author Hugo Sales * @copyright 2021 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace Component\Conversation\Controller; use Component\Feed\Feed; use Component\Feed\Util\FeedController; use Symfony\Component\HttpFoundation\Request; use function App\Core\I18n\_m; class Conversation extends FeedController { /** * Render conversation page * * @return array */ public function showConversation(Request $request, int $conversation_id) { $data = Feed::query(query: "note-conversation:{$conversation_id}", page: $this->int('p') ?? 1); $notes = $data['notes']; return [ '_template' => 'feed/feed.html.twig', 'notes' => $notes, 'should_format' => false, 'page_title' => _m('Conversation'), ]; } }