]> git.mxchange.org Git - friendica.git/commitdiff
Quickfix to avoid bad looking incoming tweets
authorMichael <heluecht@pirati.ca>
Sat, 17 Apr 2021 07:26:03 +0000 (07:26 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 17 Apr 2021 07:26:03 +0000 (07:26 +0000)
Fixes https://github.com/friendica/friendica/pull/10148#issuecomment-821512658

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'] ?? [];