Merge pull request #7446 from annando/alt-text

ActivityPub: Support for incoming picture descriptions
This commit is contained in:
Hypolite Petovan
2019-07-29 00:57:14 -04:00
committed by GitHub

View File

@@ -111,7 +111,11 @@ class Processor
continue; continue;
} }
if (empty($attach['name'])) {
$item['body'] .= "\n[img]" . $attach['url'] . '[/img]'; $item['body'] .= "\n[img]" . $attach['url'] . '[/img]';
} else {
$item['body'] .= "\n[img=" . $attach['url'] . ']' . $attach['name'] . '[/img]';
}
} else { } else {
if (!empty($item["attach"])) { if (!empty($item["attach"])) {
$item["attach"] .= ','; $item["attach"] .= ',';