From 301e405769ad9fbe80955cdad7d9d9192cbfe5b6 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 14 May 2018 18:27:12 -0700 Subject: fine tuning the refactored tag/mention code --- include/text.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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=')) -- cgit v1.2.3