aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ping.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-08-01 23:45:41 +0200
committergit-marijus <mario@mariovavti.com>2017-08-01 23:45:41 +0200
commit2ba2187c2ed6fa32075bc52d23ff66ece87f03c4 (patch)
tree2064fc8ced63e8a956bf034daa38df0ab84020d2 /Zotlabs/Module/Ping.php
parent599b395e247c991756c7cf5db29608b2c817f476 (diff)
downloadvolse-hubzilla-2ba2187c2ed6fa32075bc52d23ff66ece87f03c4.tar.gz
volse-hubzilla-2ba2187c2ed6fa32075bc52d23ff66ece87f03c4.tar.bz2
volse-hubzilla-2ba2187c2ed6fa32075bc52d23ff66ece87f03c4.zip
do not show pubs notifications for items with ACTIVITY_OBJ_FILE obj_type
Diffstat (limited to 'Zotlabs/Module/Ping.php')
-rw-r--r--Zotlabs/Module/Ping.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php
index 190208727..f38ed510e 100644
--- a/Zotlabs/Module/Ping.php
+++ b/Zotlabs/Module/Ping.php
@@ -147,11 +147,13 @@ class Ping extends \Zotlabs\Web\Controller {
$pubs = q("SELECT count(id) as total from item
WHERE uid = %d
AND author_xchan != '%s'
+ AND obj_type != '%s'
AND item_unseen = 1
AND created > '" . datetime_convert('UTC','UTC',$_SESSION['static_loadtime']) . "'
$item_normal",
intval($sys['channel_id']),
- dbesc(get_observer_hash())
+ dbesc(get_observer_hash()),
+ dbesc(ACTIVITY_OBJ_FILE)
);
if($pubs)