From: Domovoy Date: Tue, 7 Aug 2012 08:04:47 +0000 (+0200) Subject: Fallback so that we alway have a thr-parent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b514ea9893d9814cf8a000ef165d24a96fdaf7d;p=friendica.git Fallback so that we alway have a thr-parent --- diff --git a/mod/item.php b/mod/item.php index fe7513de00..c7b755eaed 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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;