From: Michael Date: Sat, 29 Oct 2022 19:11:26 +0000 (+0000) Subject: Only fetch the needed field X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8bba8663fbfca8ee3f0ca125d1022ef4df682082;p=friendica.git Only fetch the needed field --- 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) &&