$postarray = appnet_createpost($a, $uid, $post, $me, $user, $ownid, true);
$item = item_store($postarray);
+ $postarray["id"] = $item;
+
logger('appnet_fetchstream: User '.$uid.' posted stream item '.$item);
$lastid = $post["id"];
$parent_id = $postarray['parent'];
} elseif (isset($postarray["body"])) {
$item = item_store($postarray);
+ $postarray["id"] = $item;
+
$parent_id = 0;
logger('appnet_fetchstream: User '.$uid.' posted mention item '.$item);
} else {
foreach ($thread AS $tpost) {
$threadpost = appnet_createpost($a, $uid, $tpost, $me, $user, $ownid, false, false);
$item = item_store($threadpost);
+ $threadpost["id"] = $item;
+
logger("appnet_createpost: stored post ".$post["id"]." thread ".$post["thread_id"]." in item ".$item, LOGGER_DEBUG);
}
//}
return false;
$top_item = item_store($postarray);
+ $postarray["id"] = $top_item;
if (($top_item == 0) AND ($post->verb == "update")) {
$r = q("UPDATE `item` SET `title` = '%s', `body` = '%s' , `changed` = '%s' WHERE `uri` = '%s' AND `uid` = %d",
continue;
$item = item_store($postarray);
+ $postarray["id"] = $item;
logger('statusnet_fetchhometimeline: User '.$self["nick"].' posted home timeline item '.$item);
continue;
$item = item_store($postarray);
+ $postarray["id"] = $item;
logger('statusnet_fetchhometimeline: User '.$self["nick"].' posted mention timeline item '.$item);
}
//print_r($postarray);
$item = item_store($postarray);
+ $postarray["id"] = $item;
logger('statusnet_complete_conversation: User '.$self["nick"].' posted home timeline item '.$item);
continue;
$item = item_store($postarray);
+ $postarray["id"] = $item;
logger('twitter_fetchhometimeline: User '.$self["nick"].' posted home timeline item '.$item);
continue;
$item = item_store($postarray);
+ $postarray["id"] = $item;
if (!isset($postarray["parent"]) OR ($postarray["parent"] == 0))
$postarray["parent"] = $item;