home notifications won't expand if there are more than 300 unseen network notifications ahead of them.
(cherry picked from commit 30efeb5bec
)
This commit is contained in:
parent
44832bbacb
commit
9896057549
@ -347,6 +347,10 @@ class Ping extends \Zotlabs\Web\Controller {
|
|||||||
if(argc() > 1 && (argv(1) === 'network' || argv(1) === 'home')) {
|
if(argc() > 1 && (argv(1) === 'network' || argv(1) === 'home')) {
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|
||||||
|
if(argv(1) === 'home') {
|
||||||
|
$sql_extra .= ' and item_wall = 1 ';
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("SELECT * FROM item
|
$r = q("SELECT * FROM item
|
||||||
WHERE uid = %d
|
WHERE uid = %d
|
||||||
AND item_unseen = 1
|
AND item_unseen = 1
|
||||||
@ -362,8 +366,6 @@ class Ping extends \Zotlabs\Web\Controller {
|
|||||||
if($r) {
|
if($r) {
|
||||||
xchan_query($r);
|
xchan_query($r);
|
||||||
foreach($r as $item) {
|
foreach($r as $item) {
|
||||||
if((argv(1) === 'home') && (! intval($item['item_wall'])))
|
|
||||||
continue;
|
|
||||||
$result[] = \Zotlabs\Lib\Enotify::format($item);
|
$result[] = \Zotlabs\Lib\Enotify::format($item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user