From: Michael Vogel <icarus@dabo.de>
Date: Sat, 18 Jul 2020 20:48:40 +0000 (+0200)
Subject: Add some more useful fields for ping hook
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ad5bd9b9c0b07d0b1ef85d4d26d2411db01e308;p=friendica.git

Add some more useful fields for ping hook
---

diff --git a/mod/ping.php b/mod/ping.php
index 4b972369c7..848f2f0ecf 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -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];