]> git.mxchange.org Git - friendica.git/commitdiff
ActivityPub: Support for incoming picture descriptions
authorMichael <heluecht@pirati.ca>
Mon, 29 Jul 2019 04:35:13 +0000 (04:35 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 29 Jul 2019 04:35:13 +0000 (04:35 +0000)
src/Protocol/ActivityPub/Processor.php

index dadadecde9af1c97789404cce9d51292a2f64df6..e85caa7e4c1a43939f9f8dc1cb98946ae2630773 100644 (file)
@@ -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"] .= ',';