call_hooks('post_remote', $arr);
}
+ // This array field is used to trigger some automatic reactions
+ // It is mainly used in the "post_local" hook.
+ unset($arr['api_source']);
+
if (x($arr, 'cancel')) {
logger('item_store: post cancelled by plugin.');
return 0;
$datarray['author-link'] = $datarray['owner-link'];
$datarray['author-avatar'] = $datarray['owner-avatar'];
+ // Trigger automatic reactions for addons
+ $datarray['api_source'] = true;
+
unset($datarray['created']);
unset($datarray['edited']);
}