diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-24 19:45:19 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-24 19:45:19 -0700 |
commit | 1650d79862c0e89887ede279a19c8df07fe0d927 (patch) | |
tree | d79456ec287e5627975fa0bba02fb41b148c5030 /include/zot.php | |
parent | e8a888caabe83170ce879d7043fae188cd0fed16 (diff) | |
download | volse-hubzilla-1650d79862c0e89887ede279a19c8df07fe0d927.tar.gz volse-hubzilla-1650d79862c0e89887ede279a19c8df07fe0d927.tar.bz2 volse-hubzilla-1650d79862c0e89887ede279a19c8df07fe0d927.zip |
tagging changes - provides ability to mention a forum by using !forumname as well as the traditional red style (@forumname+). This should probably not be advertised on a wide scale until after a critical mass of sites have updated to a version containing these changes. This adds yet another option type to the ACL module which probably needs refactoring soon since it is turning into option type spaghetti.
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php index f03445781..1a9692ae9 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1432,7 +1432,7 @@ function public_recips($msg) { if($msg['message']['tags']) { if(is_array($msg['message']['tags']) && $msg['message']['tags']) { foreach($msg['message']['tags'] as $tag) { - if(($tag['type'] === 'mention') && (strpos($tag['url'],z_root()) !== false)) { + if(($tag['type'] === 'mention' || $tag['type'] === 'forum') && (strpos($tag['url'],z_root()) !== false)) { $address = basename($tag['url']); if($address) { $z = q("select channel_hash as hash from channel where channel_address = '%s' |