aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes
diff options
context:
space:
mode:
authorwinter2025-02-16 19:36:51 +0000
committerwinter2025-02-16 19:36:51 +0000
commit5a44137ddea7b3a6d7f68cbe71594f7633d6e9a6 (patch)
tree1583032971f5fbde6e333a4c377c2b6672dc296c /routes
parent65dfe7aff06dfd3b044a5deb47b03d643c651ec1 (diff)
link previews
Diffstat (limited to 'routes')
-rw-r--r--routes/note_fragment.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/note_fragment.php b/routes/note_fragment.php
index b64eb22..e9a7396 100644
--- a/routes/note_fragment.php
+++ b/routes/note_fragment.php
@@ -89,6 +89,7 @@ Router::getInstance()->mount('/fragment/note/:id/reply', function (array $args)
foreach (($_POST['mentions'] ?? []) as $uid) {
$reply->mentions[] = Actor::find($uid);
}
+ $reply->generateLinkPreviews();
$reply->save();
$reply->publish();
$reply->processTimelineAdditions();
@@ -126,6 +127,7 @@ Router::getInstance()->mount('/fragment/note', function (array $args) {
$obj = StorageObject::findByOid($attachments[$i]);
$note->attachments[] = NoteAttachment::fromStorageObject($obj, $index++, $altTexts[$i] ?: null);
}
+ $note->generateLinkPreviews();
$note->save();
$note->publish();
$note->processTimelineAdditions();