diff options
author | zotlabs <mike@macgirvin.com> | 2018-12-09 20:24:04 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-12-09 20:24:04 -0800 |
commit | 30efeb5becb2b5e1133f429460c5c3bbc9b44f55 (patch) | |
tree | cb4cfec6b80026416baa7e59f8c460a303f7b7bd /Zotlabs | |
parent | 214b81e49174b98f09382eec3ef2bd7ecf24ad01 (diff) | |
download | volse-hubzilla-30efeb5becb2b5e1133f429460c5c3bbc9b44f55.tar.gz volse-hubzilla-30efeb5becb2b5e1133f429460c5c3bbc9b44f55.tar.bz2 volse-hubzilla-30efeb5becb2b5e1133f429460c5c3bbc9b44f55.zip |
home notifications won't expand if there are more than 300 unseen network notifications ahead of them.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Ping.php | 6 |
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); } } |