]> git.mxchange.org Git - friendica-addons.git/commitdiff
fromgplus: Sometimes identical comments were posted above and below a picture.
authorMichael Vogel <icarus@dabo.de>
Sat, 24 Aug 2013 17:18:47 +0000 (19:18 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 24 Aug 2013 17:18:47 +0000 (19:18 +0200)
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;