Fallback so that we alway have a thr-parent
This commit is contained in:
@@ -545,6 +545,10 @@ function item_post(&$a) {
|
|||||||
|
|
||||||
$uri = item_new_uri($a->get_hostname(),$profile_uid);
|
$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 = array();
|
||||||
$datarray['uid'] = $profile_uid;
|
$datarray['uid'] = $profile_uid;
|
||||||
$datarray['type'] = $post_type;
|
$datarray['type'] = $post_type;
|
||||||
|
|||||||
Reference in New Issue
Block a user