Add some more useful fields for ping hook
This commit is contained in:
parent
9f1d1db1ee
commit
2ad5bd9b9c
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue