$post .= "\n[url=".$thumb->url."][img]".$image."[/img][/url]\n";
}
break;
+ case "audio":
+ $post .= "\n\n[bookmark=".$attachment->url."]".fromgplus_html2bbcode($attachment->displayName)."[/bookmark]\n";
+ break;
//default:
// die($attachment->objectType);
}
$lastdate = 0;
+ if (!is_array($activities->items))
+ return;
+
$reversed = array_reverse($activities->items);
foreach($reversed as $item) {
$post = fromgplus_html2bbcode($item->annotation)."\n";
if (intval(get_config('system','new_share'))) {
- $post .= "[share author='".$item->object->actor->displayName.
+ $post .= "[share author='".str_replace("'", "'",$item->object->actor->displayName).
"' profile='".$item->object->actor->url.
"' avatar='".$item->object->actor->image->url.
"' link='".$item->object->url."']";