return($cleaned);
}
-function fromgplus_handleattachments($item) {
+function fromgplus_handleattachments($item, $displaytext) {
$post = "";
$quote = "";
elseif ($images["full"] != "")
$post .= "\n[img]".$images["full"]."[/img]\n";
- if ($attachment->displayName != "")
+ if (($attachment->displayName != "") AND ($attachment->displayName != $displaytext))
$post .= fromgplus_html2bbcode($attachment->displayName)."\n";
break;
$post = fromgplus_html2bbcode($item->object->content);
if (is_array($item->object->attachments))
- $post .= fromgplus_handleattachments($item);
+ $post .= fromgplus_handleattachments($item, $item->object->content);
// geocode, placeName
if (isset($item->address))
$post .= fromgplus_html2bbcode($item->object->content);
if (is_array($item->object->attachments))
- $post .= "\n".trim(fromgplus_handleattachments($item));
+ $post .= "\n".trim(fromgplus_handleattachments($item, $item->object->content));
$post .= "[/share]";
} else {
$post .= fromgplus_html2bbcode($item->object->content);
if (is_array($item->object->attachments))
- $post .= "\n".trim(fromgplus_handleattachments($item));
+ $post .= "\n".trim(fromgplus_handleattachments($item, $item->object->content));
}
if (isset($item->address))