diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index dadadecde9..e85caa7e4c 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -111,7 +111,11 @@ class Processor continue; } - $item['body'] .= "\n[img]" . $attach['url'] . '[/img]'; + if (empty($attach['name'])) { + $item['body'] .= "\n[img]" . $attach['url'] . '[/img]'; + } else { + $item['body'] .= "\n[img=" . $attach['url'] . ']' . $attach['name'] . '[/img]'; + } } else { if (!empty($item["attach"])) { $item["attach"] .= ',';