aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-03-20 13:39:32 +0000
committerMario <mario@mariovavti.com>2025-03-20 13:39:32 +0000
commit80c9880a67bd3aef55c4528f78b0b653731a29cc (patch)
tree6352169dfc7f7822b491c7ca064a5595f262937f /Zotlabs
parentd1f54507f6c742003082b3e858f67cda3722670a (diff)
downloadvolse-hubzilla-80c9880a67bd3aef55c4528f78b0b653731a29cc.tar.gz
volse-hubzilla-80c9880a67bd3aef55c4528f78b0b653731a29cc.tar.bz2
volse-hubzilla-80c9880a67bd3aef55c4528f78b0b653731a29cc.zip
do not include our own activities in unseen forum notifications
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Sse_bs.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php
index d214ba28f..a2c8d0660 100644
--- a/Zotlabs/Module/Sse_bs.php
+++ b/Zotlabs/Module/Sse_bs.php
@@ -614,10 +614,11 @@ class Sse_bs extends Controller {
*/
$r = q("select count(*) as total from item
- where uid = %d and ( owner_xchan = '%s' OR author_xchan = '%s' $p_sql ) and verb != 'Announce' and item_unseen = 1 $sql_extra $item_normal",
+ where uid = %d and ( owner_xchan = '%s' OR author_xchan = '%s' $p_sql ) and author_xchan != '%s' and verb != 'Announce' and item_unseen = 1 $sql_extra $item_normal",
intval(self::$uid),
dbesc($forums[$x]['xchan_hash']),
- dbesc($forums[$x]['xchan_hash'])
+ dbesc($forums[$x]['xchan_hash']),
+ dbesc(self::$ob_hash)
);