]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagger.php
Merge pull request #12025 from annando/no-boot-src-module
[friendica.git] / mod / tagger.php
index b3f5f9af196b787acdd887ffd2801b534991aa14..5e209ec943f21d09afc7a49dc3933be6eb1240f5 100644 (file)
@@ -63,13 +63,13 @@ function tagger_content(App $a)
 
        $owner_uid = $item['uid'];
 
-       if (local_user() != $owner_uid) {
+       if (Session::getLocalUser() != $owner_uid) {
                return;
        }
 
-       $contact = Contact::selectFirst([], ['self' => true, 'uid' => local_user()]);
+       $contact = Contact::selectFirst([], ['self' => true, 'uid' => Session::getLocalUser()]);
        if (!DBA::isResult($contact)) {
-               Logger::warning('Self contact not found.', ['uid' => local_user()]);
+               Logger::warning('Self contact not found.', ['uid' => Session::getLocalUser()]);
                return;
        }