mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:10:12 +00: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
|
@ -711,7 +711,7 @@ class DFRN
|
|||
*/
|
||||
private static function getAttachment($doc, $root, array $item)
|
||||
{
|
||||
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