mirror of
https://github.com/friendica/friendica
synced 2025-05-04 07:04:10 +02:00
Issue 12345: No link preview on DFRN posts
This commit is contained in:
parent
b9cb94c432
commit
7d51fa47d5
6 changed files with 72 additions and 26 deletions
|
@ -1186,7 +1186,7 @@ class OStatus
|
|||
}
|
||||
}
|
||||
|
||||
foreach (Post\Media::getByURIId($item['uri-id'], [Post\Media::DOCUMENT, Post\Media::TORRENT, Post\Media::UNKNOWN]) as $attachment) {
|
||||
foreach (Post\Media::getByURIId($item['uri-id'], [Post\Media::DOCUMENT, Post\Media::TORRENT]) as $attachment) {
|
||||
$attributes = ['rel' => 'enclosure',
|
||||
'href' => $attachment['url'],
|
||||
'type' => $attachment['mimetype']];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue