From: Hypolite Petovan Date: Fri, 12 Jan 2018 03:34:02 +0000 (-0500) Subject: Fallback to regular attachment display on oembed error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=77c1251d03de8823d27f00c92e40c3227fcdc90a;p=friendica.git Fallback to regular attachment display on oembed error --- diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 3ab5b4fea8..836f5a2184 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -131,14 +131,12 @@ class OEmbed $j->embedurl = $embedurl; // If fetching information doesn't work, then improve via internal functions - if (($j->type == "error") || ($no_rich_type && ($j->type == "rich"))) { + if ($no_rich_type && ($j->type == "rich")) { $data = ParseUrl::getSiteinfoCached($embedurl, true, false); $j->type = $data["type"]; if ($j->type == "photo") { $j->url = $data["url"]; - //$j->width = $data["images"][0]["width"]; - //$j->height = $data["images"][0]["height"]; } if (isset($data["title"])) {