mirror of
https://github.com/friendica/friendica
synced 2025-05-25 07:04:12 +02:00
Fix attachment handling
This commit is contained in:
parent
e01bda56c5
commit
d6c97dbde2
4 changed files with 29 additions and 50 deletions
|
@ -3411,7 +3411,7 @@ class Diaspora
|
|||
|
||||
$attachments = Post\Media::getByURIId($item['uri-id'], [Post\Media::DOCUMENT, Post\Media::TORRENT, Post\Media::UNKNOWN]);
|
||||
if (!empty($attachments)) {
|
||||
$body .= "\n".DI::l10n()->t("Attachments:")."\n";
|
||||
$body .= "\n[hr]\n";
|
||||
foreach ($attachments as $attachment) {
|
||||
$body .= "[" . $attachment['description'] . "](" . $attachment['url'] . ")\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue