diff options
Diffstat (limited to 'routes/note_fragment.php')
| -rw-r--r-- | routes/note_fragment.php | 3 |
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 |
