From: Michael Vogel Date: Sat, 24 Aug 2013 17:18:47 +0000 (+0200) Subject: fromgplus: Sometimes identical comments were posted above and below a picture. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3253a3c85a2c80f24678f668d10c6f99e272ae5;p=friendica-addons.git fromgplus: Sometimes identical comments were posted above and below a picture. --- diff --git a/fromgplus/fromgplus.php b/fromgplus/fromgplus.php index dcfeff86..59b20023 100644 --- a/fromgplus/fromgplus.php +++ b/fromgplus/fromgplus.php @@ -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;