]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
Contact follow and unfollow workd partially
[friendica.git] / src / Util / ParseUrl.php
index 4443da75641cd2876d4fbdb3ed17aca21d5d31dc..40cb0b8fc099eaa42763fd4ddbd06ecd062d1185 100644 (file)
@@ -333,7 +333,7 @@ class ParseUrl
                }
 
                // Prevent to have a photo type without an image
-               if (empty($siteinfo['image']) && (siteinfo['type'] == 'photo')) {
+               if ((empty($siteinfo['image']) || !empty($siteinfo['text'])) && ($siteinfo['type'] == 'photo')) {
                        $siteinfo['type'] = 'link';
                }