]> git.mxchange.org Git - friendica.git/commitdiff
Add some more useful fields for ping hook
authorMichael Vogel <icarus@dabo.de>
Sat, 18 Jul 2020 20:48:40 +0000 (22:48 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 18 Jul 2020 20:48:40 +0000 (22:48 +0200)
mod/ping.php

index 4b972369c7021e732b5703c866f03083b812f5d1..848f2f0ecffc882a9f98bcf0298a197d202ccd36 100644 (file)
@@ -138,7 +138,7 @@ function ping_init(App $a)
 
                $condition = ["`unseen` AND `uid` = ? AND NOT `origin` AND (`vid` != ? OR `vid` IS NULL)",
                        local_user(), Verb::getID(Activity::FOLLOW)];
-               $items = Item::selectForUser(local_user(), ['wall'], $condition);
+               $items = Item::selectForUser(local_user(), ['wall', 'uid', 'uri-id'], $condition);
                if (DBA::isResult($items)) {
                        $items_unseen = Item::inArray($items);
                        $arr = ['items' => $items_unseen];