diff options
author | Mario <mario@mariovavti.com> | 2020-01-25 14:32:35 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-01-25 14:32:35 +0000 |
commit | 7abcdd34af8796571a0145d16a71a9009b995032 (patch) | |
tree | becfea9625461aa38ce49a235be6294c8c9bb9db /Zotlabs/Widget | |
parent | fa45ea1d84f27c6b4ddfdcffeed622cca354f3d9 (diff) | |
download | volse-hubzilla-7abcdd34af8796571a0145d16a71a9009b995032.tar.gz volse-hubzilla-7abcdd34af8796571a0145d16a71a9009b995032.tar.bz2 volse-hubzilla-7abcdd34af8796571a0145d16a71a9009b995032.zip |
minor private forum notifications fixes
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r-- | Zotlabs/Widget/Activity_filter.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Activity_filter.php b/Zotlabs/Widget/Activity_filter.php index ae5c0af6e..0fc60ca9b 100644 --- a/Zotlabs/Widget/Activity_filter.php +++ b/Zotlabs/Widget/Activity_filter.php @@ -2,6 +2,7 @@ namespace Zotlabs\Widget; +use App; use Zotlabs\Lib\Apps; class Activity_filter { @@ -63,6 +64,7 @@ class Activity_filter { if(feature_enabled(local_channel(),'forums_tab')) { $forums = get_forum_channels(local_channel()); + $channel = App::get_channel(); if($forums) { foreach($forums as $f) { @@ -73,7 +75,7 @@ class Activity_filter { $fsub[] = [ 'label' => $f['xchan_name'], 'img' => $f['xchan_photo_s'], - 'url' => (($f['private_forum']) ? $f['xchan_url'] : z_root() . '/' . $cmd . '/?f=&pf=1&cid=' . $f['abook_id']), + 'url' => (($f['private_forum']) ? $f['xchan_url'] . '/?f=&zid=' . $channel['xchan_addr'] : z_root() . '/' . $cmd . '/?f=&pf=1&cid=' . $f['abook_id']), 'sel' => $forum_active, 'title' => t('Show posts to this forum'), 'lock' => (($f['private_forum']) ? 'lock' : '') |