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