X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fconversation.php;h=1f337859b50c0bad9543a00280694bba4465d753;hb=fd73b0e1d2866701ed48d432ebcc0b32ee10a09f;hp=b545445e4b25ed7e1266a63b6c9bffa27583951d;hpb=4495e83eca67986ecbd5e083509c782116d77c6c;p=friendica.git diff --git a/include/conversation.php b/include/conversation.php index b545445e4b..1f337859b5 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -481,7 +481,7 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o $body_html = Item::prepareBody($item, true, $preview); - list($categories, $folders) = DI::contentItem()->determineCategoriesTerms($item); + list($categories, $folders) = DI::contentItem()->determineCategoriesTerms($item, local_user()); if (!empty($item['content-warning']) && DI::pConfig()->get(local_user(), 'system', 'disable_cw', false)) { $title = ucfirst($item['content-warning']); @@ -1071,7 +1071,7 @@ function status_editor(App $a, array $x = [], $notes_cid = 0, $popup = false) DI::profiler()->startRecording('rendering'); $o = ''; - $user = User::getById($a->getUserId(), ['uid', 'nickname', 'allow_location', 'default-location']); + $user = User::getById($a->getLoggedInUserId(), ['uid', 'nickname', 'allow_location', 'default-location']); $x['allow_location'] = $x['allow_location'] ?? $user['allow_location']; $x['default_location'] = $x['default_location'] ?? $user['default-location'];