Merge pull request #7446 from annando/alt-text

ActivityPub: Support for incoming picture descriptions
pull/7448/head
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
1 changed files with 5 additions and 1 deletions

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