]> git.mxchange.org Git - friendica.git/commitdiff
Just some precaution
authorMichael <heluecht@pirati.ca>
Fri, 19 Jan 2018 07:50:11 +0000 (07:50 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 19 Jan 2018 07:50:11 +0000 (07:50 +0000)
mod/item.php

index b29144513a5a3b748e00d935047b343c158b8703..4b284568aaaf0f3a8900e5f9fb79c99650634925 100644 (file)
@@ -174,7 +174,7 @@ function item_post(App $a) {
        $object      = (x($_REQUEST, 'object')      ? $_REQUEST['object']              : '');
 
        // Ensure that the user id in a thread always stay the same
-       if (!is_null($parent_user)) {
+       if (!is_null($parent_user) && in_array($parent_user, [local_user(), 0])) {
                $profile_uid = $parent_user;
        }