]> git.mxchange.org Git - friendica.git/commitdiff
don't generate guid if one provided wirth msg
authorFriendika <info@friendika.com>
Sun, 21 Aug 2011 00:46:33 +0000 (17:46 -0700)
committerFriendika <info@friendika.com>
Sun, 21 Aug 2011 00:46:33 +0000 (17:46 -0700)
include/items.php

index b84b71ba80476f30a63f898ea1e76187fa588ffd..746e3b2944fc2769ec5090afc83042fe091c0238 100644 (file)
@@ -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);