X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDebug%2FItemBody.php;h=6bc1419d3463e08e0d550c03b756bbb09d6013f9;hb=1d6f5c33a1a7c538d4e529d22701fd735855da15;hp=ff392221281e9bfb661c3a70e6768e4a4be28ec4;hpb=c9f17e1ef5d26ef27a6a495c52844a540798531e;p=friendica.git diff --git a/src/Module/Debug/ItemBody.php b/src/Module/Debug/ItemBody.php index ff39222128..6bc1419d34 100644 --- a/src/Module/Debug/ItemBody.php +++ b/src/Module/Debug/ItemBody.php @@ -1,6 +1,6 @@ getLocalUserId()) { throw new HTTPException\UnauthorizedException(DI::l10n()->t('Access denied.')); } @@ -45,7 +44,7 @@ class ItemBody extends BaseModule $itemId = intval($this->parameters['item']); - $item = Post::selectFirst(['body'], ['uid' => [0, Session::getLocalUser()], 'uri-id' => $itemId]); + $item = Post::selectFirst(['body'], ['uid' => [0, DI::userSession()->getLocalUserId()], 'uri-id' => $itemId]); if (!empty($item)) { if (DI::mode()->isAjax()) {