From 8bba8663fbfca8ee3f0ca125d1022ef4df682082 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 29 Oct 2022 19:11:26 +0000 Subject: [PATCH] Only fetch the needed field --- src/Factory/Api/Mastodon/Notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factory/Api/Mastodon/Notification.php b/src/Factory/Api/Mastodon/Notification.php index 3e43835b43..adaf2d8689 100644 --- a/src/Factory/Api/Mastodon/Notification.php +++ b/src/Factory/Api/Mastodon/Notification.php @@ -85,7 +85,7 @@ class Notification extends BaseFactory if (($Notification->verb == Activity::FOLLOW) && ($Notification->type === Post\UserNotification::TYPE_NONE)) { $contact = Contact::getById($Notification->actorId, ['pending', 'uri-id', 'uid']); if (($contact['uid'] == 0) && !empty($contact['uri-id'])) { - $contact = Contact::selectFirst(['pending', 'uri-id', 'uid'], ['uri-id' => $contact['uri-id'], 'uid' => $Notification->uid]); + $contact = Contact::selectFirst(['pending'], ['uri-id' => $contact['uri-id'], 'uid' => $Notification->uid]); } $type = $contact['pending'] ? MstdnNotification::TYPE_INTRODUCTION : MstdnNotification::TYPE_FOLLOW; } elseif (($Notification->verb == Activity::ANNOUNCE) &&