aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/note_fragment.php
diff options
context:
space:
mode:
authorwinter2025-01-15 20:33:38 +0000
committerwinter2025-01-15 20:33:38 +0000
commit75b3778dccccddb5cc90b2b4e0a3f958826ad8ba (patch)
tree6240a96338f58b5f175e97132a4ce5d804e3b2da /routes/note_fragment.php
parent07df9da970ceaa54c734d73bdb148fa36d42db63 (diff)
implement home timeline
Diffstat (limited to 'routes/note_fragment.php')
-rw-r--r--routes/note_fragment.php3
1 files changed, 3 insertions, 0 deletions
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