aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-20 17:46:33 -0700
committerFriendika <info@friendika.com>2011-08-20 17:46:33 -0700
commit349ea8d4758a78e668405d3c1c2b3e0f6dd9f25a (patch)
tree8d0227f493c82ef2e468e04c0e8349254fd4a4f3 /include/items.php
parent8fa6f492420f830b4c9c06f2f391853e82285825 (diff)
downloadvolse-hubzilla-349ea8d4758a78e668405d3c1c2b3e0f6dd9f25a.tar.gz
volse-hubzilla-349ea8d4758a78e668405d3c1c2b3e0f6dd9f25a.tar.bz2
volse-hubzilla-349ea8d4758a78e668405d3c1c2b3e0f6dd9f25a.zip
don't generate guid if one provided wirth msg
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index b84b71ba8..746e3b294 100644
--- a/include/items.php
+++ b/include/items.php
@@ -695,6 +695,7 @@ function item_store($arr,$force_parent = false) {
$arr['tag'] = ((x($arr,'tag')) ? notags(trim($arr['tag'])) : '');
$arr['attach'] = ((x($arr,'attach')) ? notags(trim($arr['attach'])) : '');
$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']) {
$parent_id = 0;
@@ -758,7 +759,6 @@ function item_store($arr,$force_parent = false) {
}
}
- $arr['guid'] = get_guid();
call_hooks('post_remote',$arr);