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"] .= ',';
if ($isForum) {
$item['contact-id'] = Contact::getIdForURL($activity['actor'], $receiver, true);
- }
-
- if (empty($item['contact-id'])) {
+ } else {
$item['contact-id'] = Contact::getIdForURL($activity['author'], $receiver, true);
}