From: Michael Date: Sat, 17 Apr 2021 07:26:03 +0000 (+0000) Subject: Quickfix to avoid bad looking incoming tweets X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3b27dc7894d644897af65e17aaad1f5f0742c9b;p=friendica.git Quickfix to avoid bad looking incoming tweets Fixes https://github.com/friendica/friendica/pull/10148#issuecomment-821512658 --- diff --git a/src/Util/ParseUrl.php b/src/Util/ParseUrl.php index 683544f448..9ce9b0e9f9 100644 --- a/src/Util/ParseUrl.php +++ b/src/Util/ParseUrl.php @@ -477,10 +477,11 @@ class ParseUrl } } +// Currently deactivated, see https://github.com/friendica/friendica/pull/10148#issuecomment-821512658 // Prevent to have a photo type without an image - if ($twitter_card && $twitter_image && !empty($siteinfo['image'])) { - $siteinfo['type'] = 'photo'; - } +// if ($twitter_card && $twitter_image && !empty($siteinfo['image'])) { +// $siteinfo['type'] = 'photo'; +// } if (!empty($siteinfo['image'])) { $siteinfo['images'] = $siteinfo['images'] ?? [];