UserSession class [2] - Refactor mod/ files

This commit is contained in:
Philipp 2022-10-20 21:02:49 +02:00
parent a729f3255d
commit bfe68702db
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
25 changed files with 201 additions and 201 deletions

View file

@ -31,7 +31,7 @@ use Friendica\Model\Post;
function share_init(App $a) {
$post_id = ((DI::args()->getArgc() > 1) ? intval(DI::args()->getArgv()[1]) : 0);
if (!$post_id || !Session::getLocalUser()) {
if (!$post_id || !DI::userSession()->getLocalUserId()) {
System::exit();
}