diff options
author | zotlabs <mike@macgirvin.com> | 2018-05-14 18:27:12 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-05-14 18:27:12 -0700 |
commit | 301e405769ad9fbe80955cdad7d9d9192cbfe5b6 (patch) | |
tree | 79b229b067c7afaaa1ac9412e6ad84401dc517db /include | |
parent | 229d82c4c7ca37c304d1291be7f71ba4b0632f03 (diff) | |
download | volse-hubzilla-301e405769ad9fbe80955cdad7d9d9192cbfe5b6.tar.gz volse-hubzilla-301e405769ad9fbe80955cdad7d9d9192cbfe5b6.tar.bz2 volse-hubzilla-301e405769ad9fbe80955cdad7d9d9192cbfe5b6.zip |
fine tuning the refactored tag/mention code
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 1c4f5e2ec..ef3c8871c 100644 --- a/include/text.php +++ b/include/text.php @@ -2604,6 +2604,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $i // BEGIN mentions + if ( in_array($termtype, [ TERM_MENTION, TERM_FORUM ] )) { // The @! tag and !! tag will alter permissions @@ -2611,7 +2612,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag, $i // $in_network is set to false to avoid false positives on posts originating // on a network which does not implement privacy tags or implements them differently. - $exclusive = (((strpos($tag,'!') === 1) && $in_network) ? true : false); + $exclusive = (((strpos(substr($tag,1), '!') === 0) && $in_network) ? true : false); //is it already replaced? if(strpos($tag,'[zrl=') || strpos($tag,'[url=')) |