]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
fromgplus: Sometimes identical comments were posted above and below a picture.
[friendica-addons.git] / fromgplus / fromgplus.php
index dcfeff86d871baa441d9c3fc68d867f604de1c6e..59b20023fd177f15f86612f511582188f6696e58 100644 (file)
@@ -259,7 +259,7 @@ function fromgplus_handleattachments($item, $displaytext) {
                                elseif ($images["full"] != "")
                                        $post .= "\n[img]".$images["full"]."[/img]\n";
 
-                               if (($attachment->displayName != "") AND ($attachment->displayName != $displaytext))
+                               if (($attachment->displayName != "") AND (trim($attachment->displayName) != trim(strip_tags($displaytext))))
                                        $post .= fromgplus_html2bbcode($attachment->displayName)."\n";
                                break;