]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
Merge pull request #8841 from MrPetovan/task/8839-httpsignature-hs2019
[friendica.git] / mod / ping.php
index 73e759107b7f3eca0f1812e10bd4d0f39f3b627f..6b3b015ac80e32bcc09839dad0d5e534ea826061 100644 (file)
@@ -136,7 +136,7 @@ function ping_init(App $a)
 
                $notifs = ping_get_notifications(local_user());
 
-               $condition = ["`unseen` AND `uid` = ? AND `contact-id` != ? AND `vid` != ?",
+               $condition = ["`unseen` AND `uid` = ? AND `contact-id` != ? AND (`vid` != ? OR `vid` IS NULL)",
                        local_user(), local_user(), Verb::getID(Activity::FOLLOW)];
                $fields = ['id', 'parent', 'verb', 'author-name', 'unseen', 'author-link', 'author-avatar', 'contact-avatar',
                        'network', 'created', 'object', 'parent-author-name', 'parent-author-link', 'parent-guid', 'wall', 'activity'];