aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse_bs.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-05-05 07:40:24 +0000
committerMario <mario@mariovavti.com>2020-05-05 07:40:24 +0000
commitde058901c2a8dd5fea09b1594c2ace0b8bd2c90f (patch)
treed56ed400811d4ab0286034a43474dd4a08118996 /Zotlabs/Module/Sse_bs.php
parenta40b882d723166313bacb04b67110fb31d960778 (diff)
downloadvolse-hubzilla-de058901c2a8dd5fea09b1594c2ace0b8bd2c90f.tar.gz
volse-hubzilla-de058901c2a8dd5fea09b1594c2ace0b8bd2c90f.tar.bz2
volse-hubzilla-de058901c2a8dd5fea09b1594c2ace0b8bd2c90f.zip
catch the owner_xchan for activity_share items in notifications filter
Diffstat (limited to 'Zotlabs/Module/Sse_bs.php')
-rw-r--r--Zotlabs/Module/Sse_bs.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php
index cb4c54961..a8c0b2299 100644
--- a/Zotlabs/Module/Sse_bs.php
+++ b/Zotlabs/Module/Sse_bs.php
@@ -119,7 +119,7 @@ class Sse_bs extends Controller {
$sql_extra2 = '';
if(self::$xchans)
- $sql_extra2 = " AND author_xchan IN (" . self::$xchans . ") ";
+ $sql_extra2 = " AND CASE WHEN verb = '" . ACTIVITY_SHARE . "' THEN owner_xchan ELSE author_xchan END IN (" . self::$xchans . ") ";
$item_normal = item_normal();
@@ -184,7 +184,7 @@ class Sse_bs extends Controller {
$sql_extra2 = '';
if(self::$xchans)
- $sql_extra2 = " AND author_xchan IN (" . self::$xchans . ") ";
+ $sql_extra2 = " AND CASE WHEN verb = '" . ACTIVITY_SHARE . "' THEN owner_xchan ELSE author_xchan END IN (" . self::$xchans . ") ";
$item_normal = item_normal();
@@ -261,7 +261,7 @@ class Sse_bs extends Controller {
$sql_extra2 = '';
if(self::$xchans)
- $sql_extra2 = " AND author_xchan IN (" . self::$xchans . ") ";
+ $sql_extra2 = " AND CASE WHEN verb = '" . ACTIVITY_SHARE . "' THEN owner_xchan ELSE author_xchan END IN (" . self::$xchans . ") ";
$item_normal = item_normal();