]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
Quickfix to avoid bad looking incoming tweets
[friendica.git] / src / Util / ParseUrl.php
index 683544f44860d42b7cf2c008b199835ada1a762a..9ce9b0e9f9510cac664df737d795a0990897c16d 100644 (file)
@@ -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'] ?? [];