1
1
Fork 0

don't generate guid if one provided wirth msg

This commit is contained in:
Friendika 2011-08-20 17:46:33 -07:00
parent 8fa6f49242
commit 349ea8d475

View file

@ -695,6 +695,7 @@ function item_store($arr,$force_parent = false) {
$arr['tag'] = ((x($arr,'tag')) ? notags(trim($arr['tag'])) : ''); $arr['tag'] = ((x($arr,'tag')) ? notags(trim($arr['tag'])) : '');
$arr['attach'] = ((x($arr,'attach')) ? notags(trim($arr['attach'])) : ''); $arr['attach'] = ((x($arr,'attach')) ? notags(trim($arr['attach'])) : '');
$arr['app'] = ((x($arr,'app')) ? notags(trim($arr['app'])) : ''); $arr['app'] = ((x($arr,'app')) ? notags(trim($arr['app'])) : '');
$arr['guid'] = ((x($arr,'guid')) ? notags(trim($arr['guid'])) : get_guid());
if($arr['parent-uri'] === $arr['uri']) { if($arr['parent-uri'] === $arr['uri']) {
$parent_id = 0; $parent_id = 0;
@ -758,7 +759,6 @@ function item_store($arr,$force_parent = false) {
} }
} }
$arr['guid'] = get_guid();
call_hooks('post_remote',$arr); call_hooks('post_remote',$arr);