mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:50:11 +00:00
more error checking on posts
This commit is contained in:
parent
6bb8f677c2
commit
1d0d765344
2 changed files with 23 additions and 13 deletions
|
@ -740,10 +740,10 @@ function item_store($arr,$force_parent = false) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
if($arr['parent-uri'] === $arr['uri'])
|
||||
if((! $parent_id) || ($arr['parent-uri'] === $arr['uri']))
|
||||
$parent_id = $current_post;
|
||||
|
||||
if(strlen($allow_cid) || strlen($allow_gid) || strlen($deny_cid) || strlen($deny_gid))
|
||||
|
||||
if(strlen($allow_cid) || strlen($allow_gid) || strlen($deny_cid) || strlen($deny_gid))
|
||||
$private = 1;
|
||||
else
|
||||
$private = $arr['private'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue