1
0
Fork 0

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
commit 1ccc1efdcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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"] .= ',';