X-Git-Url: https://reisub.nsupdate.info/git/?a=blobdiff_plain;f=src%2FUtil%2FParseUrl.php;h=8c8914534e716585f487ab59661080861b80f8f0;hb=102adf86aef133afb4afe501bbe0bbab0bb1a56a;hp=5745c655951e0bc39e68cb64290d7a7732395f0a;hpb=5b5e5ef4db5e502346c36428156aee1b707db5c0;p=friendica.git%2F.git diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index 5745c65595..8c8914534e 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -161,14 +161,17 @@ class ParseUrl $siteinfo['type'] = $oembed_data->type; } - if (isset($oembed_data->title)) { - $siteinfo['title'] = trim($oembed_data->title); - } - if (isset($oembed_data->description)) { - $siteinfo['text'] = trim($oembed_data->description); - } - if (isset($oembed_data->thumbnail_url)) { - $siteinfo['image'] = $oembed_data->thumbnail_url; + // See https://github.com/friendica/friendica/pull/5763#discussion_r217913178 + if ($siteinfo['type'] != 'photo') { + if (isset($oembed_data->title)) { + $siteinfo['title'] = trim($oembed_data->title); + } + if (isset($oembed_data->description)) { + $siteinfo['text'] = trim($oembed_data->description); + } + if (isset($oembed_data->thumbnail_url)) { + $siteinfo['image'] = $oembed_data->thumbnail_url; + } } } }