From d22adc98b2ee9dfeb949f6ca563520d05c217614 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 19 Jan 2018 07:50:11 +0000 Subject: [PATCH] Just some precaution --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/item.php b/mod/item.php index b29144513a..4b284568aa 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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; }