UserSession class - Refactor addon

This commit is contained in:
Philipp 2022-10-20 23:51:49 +02:00
parent 8eca74cfab
commit b0eb28143a
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
46 changed files with 534 additions and 580 deletions

View file

@ -9,7 +9,6 @@
use Friendica\App;
use Friendica\Core\Hook;
use Friendica\Core\Session;
use Friendica\DI;
function viewsrc_install()
@ -33,7 +32,7 @@ EOS;
function viewsrc_item_photo_menu(App $a, array &$b)
{
if (!Session::getLocalUser()) {
if (!DI::userSession()->getLocalUserId()) {
return;
}