mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
Fallback so that we alway have a thr-parent
This commit is contained in:
parent
4cc6bf660c
commit
4b514ea989
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue