]> git.mxchange.org Git - friendica.git/commitdiff
Moved user block
authorMichael <heluecht@pirati.ca>
Wed, 31 Jul 2019 16:09:03 +0000 (16:09 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 31 Jul 2019 16:09:03 +0000 (16:09 +0000)
src/Model/Item.php

index 1cb66cc35fe43abd8855c22f1d49ac4344498806..248e646afcd3a6ed8b545809f6205a69e56d2233 100644 (file)
@@ -1875,11 +1875,11 @@ class Item extends BaseObject
                        DBA::insert('diaspora-interaction', ['uri-id' => $item['uri-id'], 'interaction' => $diaspora_signed_text], true);
                }
 
-               // Get the user information
-               $user = User::getById($uid);
-
                // In that function we check if this is a forum post. Additionally we delete the item under certain circumstances
                if (self::tagDeliver($item['uid'], $current_post)) {
+                       // Get the user information for the logging
+                       $user = User::getById($uid);
+
                        Logger::notice('Item had been deleted', ['id' => $current_post, 'user' => $uid, 'account-type' => $user['account-type']]);
                        return 0;
                }