]> git.mxchange.org Git - friendica.git/commitdiff
Only fetch the needed field
authorMichael <heluecht@pirati.ca>
Sat, 29 Oct 2022 19:11:26 +0000 (19:11 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 29 Oct 2022 19:11:26 +0000 (19:11 +0000)
src/Factory/Api/Mastodon/Notification.php

index 3e43835b4398bc1ac2598f0ff09e1bc2ed53d7d0..adaf2d8689d1b2516e1fdfabbd0b7c0214a89057 100644 (file)
@@ -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) &&