diff options
| author | winter | 2025-02-16 19:36:51 +0000 |
|---|---|---|
| committer | winter | 2025-02-16 19:36:51 +0000 |
| commit | 5a44137ddea7b3a6d7f68cbe71594f7633d6e9a6 (patch) | |
| tree | 1583032971f5fbde6e333a4c377c2b6672dc296c /routes/note_fragment.php | |
| parent | 65dfe7aff06dfd3b044a5deb47b03d643c651ec1 (diff) | |
link previews
Diffstat (limited to 'routes/note_fragment.php')
| -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(); |
