From 88aa777410042451b318fab7f26c2f5b4623856d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 31 Jul 2019 16:09:03 +0000 Subject: [PATCH] Moved user block --- src/Model/Item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 1cb66cc35f..248e646afc 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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; }