From 75b3778dccccddb5cc90b2b4e0a3f958826ad8ba Mon Sep 17 00:00:00 2001 From: winter Date: Wed, 15 Jan 2025 20:33:38 +0000 Subject: implement home timeline --- routes/note_fragment.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'routes/note_fragment.php') diff --git a/routes/note_fragment.php b/routes/note_fragment.php index a992a61..4d8c1a6 100644 --- a/routes/note_fragment.php +++ b/routes/note_fragment.php @@ -22,6 +22,7 @@ Router::getInstance()->mount('/fragment/note/:id/:action', function (array $args // we are adding a new interaction $interaction = Interaction::create($user->actor, InteractionKind::from($action), $note); $interaction->publish(); + $interaction->processTimelineAdditions(); $active = true; } else { // we are removing the existing one @@ -47,6 +48,7 @@ Router::getInstance()->mount('/fragment/note/:id/reply', function (array $args) $reply->threadApex = $note->threadApex ?? $note; $reply->save(); $reply->publish(); + $reply->processTimelineAdditions(); } render_template('reply_form', ['note' => $note]); }); @@ -58,6 +60,7 @@ Router::getInstance()->mount('/fragment/note', function (array $args) { // TODO: summary field, post language, privacy, etc $note = Note::create($author->actor, $_POST['content'], 'unk'); $note->publish(); + $note->processTimelineAdditions(); } render_template('write_note_form'); }); \ No newline at end of file -- cgit v1.3