Just some precaution

This commit is contained in:
Michael 2018-01-19 07:50:11 +00:00
parent a07670ac30
commit d22adc98b2

View 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;
}