From: Michael Date: Mon, 29 Jul 2019 04:35:13 +0000 (+0000) Subject: ActivityPub: Support for incoming picture descriptions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab7db9944d9a67daf7667b2826bfd2902fdb816a;p=friendica.git ActivityPub: Support for incoming picture descriptions --- 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"] .= ',';