aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Ping.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-12-10 10:38:06 +0100
committerMario Vavti <mario@mariovavti.com>2018-12-10 10:38:06 +0100
commit15a689c6f549e25a1301a8cb8ba92c4cd4f90300 (patch)
tree7853e7adfa1c105038fdc0fe53f4e896925b3d65 /Zotlabs/Module/Ping.php
parent61f7c1e7d717cee4feb769e8e66cea53514a684f (diff)
parent30efeb5becb2b5e1133f429460c5c3bbc9b44f55 (diff)
downloadvolse-hubzilla-15a689c6f549e25a1301a8cb8ba92c4cd4f90300.tar.gz
volse-hubzilla-15a689c6f549e25a1301a8cb8ba92c4cd4f90300.tar.bz2
volse-hubzilla-15a689c6f549e25a1301a8cb8ba92c4cd4f90300.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Ping.php')
-rw-r--r--Zotlabs/Module/Ping.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Module/Ping.php b/Zotlabs/Module/Ping.php
index 12244d88c..a367b1062 100644
--- a/Zotlabs/Module/Ping.php
+++ b/Zotlabs/Module/Ping.php
@@ -347,6 +347,10 @@ class Ping extends \Zotlabs\Web\Controller {
if(argc() > 1 && (argv(1) === 'network' || argv(1) === 'home')) {
$result = array();
+ if(argv(1) === 'home') {
+ $sql_extra .= ' and item_wall = 1 ';
+ }
+
$r = q("SELECT * FROM item
WHERE uid = %d
AND item_unseen = 1
@@ -362,8 +366,6 @@ class Ping extends \Zotlabs\Web\Controller {
if($r) {
xchan_query($r);
foreach($r as $item) {
- if((argv(1) === 'home') && (! intval($item['item_wall'])))
- continue;
$result[] = \Zotlabs\Lib\Enotify::format($item);
}
}