filter by item_notshown instead of obj_type

This commit is contained in:
git-marijus
2017-07-28 23:07:16 +02:00
parent 9717d4502f
commit 4585e35b3e
2 changed files with 4 additions and 5 deletions

View File

@@ -401,10 +401,9 @@ class Ping extends \Zotlabs\Web\Controller {
WHERE item_unseen = 1 and uid = %d
$item_normal
AND author_xchan != '%s'
AND obj_type != '%s'",
AND item_notshown = 0",
intval(local_channel()),
dbesc($ob_hash),
dbesc(ACTIVITY_OBJ_FILE)
dbesc($ob_hash)
);
if($r) {