1
1
Fork 0

Add some more useful fields for ping hook

This commit is contained in:
Michael Vogel 2020-07-18 22:48:40 +02:00
parent 9f1d1db1ee
commit 2ad5bd9b9c

View 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];