]> 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 f3fe3b88618c66e8825ed51c9d16de58b5ad5e35..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;
        }
 
@@ -135,7 +135,7 @@ EOT;
                'author-name'   => $contact['name'],
                'author-link'   => $contact['url'],
                'author-avatar' => $contact['thumb'],
-               'body'          => sprintf( $bodyverb, $ulink, $alink, $plink, $termlink),
+               'body'          => sprintf($bodyverb, $ulink, $alink, $plink, $termlink),
                'verb'          => Activity::TAG,
                'target-type'   => $targettype,
                'target'        => $target,