]> git.mxchange.org Git - friendica.git/commitdiff
Fallback so that we alway have a thr-parent
authorDomovoy <domovoy@errlock.org>
Tue, 7 Aug 2012 08:04:47 +0000 (10:04 +0200)
committerDomovoy <domovoy@errlock.org>
Tue, 7 Aug 2012 08:04:47 +0000 (10:04 +0200)
mod/item.php

index fe7513de0050c4eeb2c89513f577e896039c86bc..c7b755eaed12582d5070f72bbc652b47066b2e1a 100644 (file)
@@ -545,6 +545,10 @@ function item_post(&$a) {
 
        $uri = item_new_uri($a->get_hostname(),$profile_uid);
 
+       // Fallback so that we alway have a thr-parent
+       if(!$thr_parent)
+               $thr_parent = $uri;
+
        $datarray = array();
        $datarray['uid']           = $profile_uid;
        $datarray['type']          = $post_type;