diff options
author | Mario <mario@mariovavti.com> | 2020-05-11 19:54:22 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-05-11 19:54:22 +0200 |
commit | c8ab5db768b7c5772fa6525f49a7b2f5b0c6f9a5 (patch) | |
tree | a51c98ab173350842f0b11231326679830cbb964 | |
parent | 3d02758fee664a67c8f15f4a7a885ae629d90cf0 (diff) | |
parent | c656478230e0e5a4f3716e8ba227d9359961b00f (diff) | |
download | volse-hubzilla-c8ab5db768b7c5772fa6525f49a7b2f5b0c6f9a5.tar.gz volse-hubzilla-c8ab5db768b7c5772fa6525f49a7b2f5b0c6f9a5.tar.bz2 volse-hubzilla-c8ab5db768b7c5772fa6525f49a7b2f5b0c6f9a5.zip |
Merge branch 'dev' into 'dev'
Dev
See merge request hubzilla/core!1856
-rw-r--r-- | include/text.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index a2e5ce37a..6873cc1c3 100644 --- a/include/text.php +++ b/include/text.php @@ -864,6 +864,11 @@ function get_tags($s) { $ret[] = $mtch; } } + if(preg_match_all('/([@#\!]\".*?\")/',$s,$match)) { + foreach($match[1] as $mtch) { + $ret[] = $mtch; + } + } // match bracket mentions @@ -2798,6 +2803,10 @@ function handle_tag(&$body, &$str_tags, $profile_uid, $tag, $in_network = true) $basetag = substr($tag,7); $basetag = substr($basetag,0,-6); } + elseif((substr($tag,0,2) === '#"') && (substr($tag,-1,1) === '"')) { + $basetag = substr($tag,2); + $basetag = substr($basetag,0,-1); + } else $basetag = substr($tag,1); @@ -2880,6 +2889,10 @@ function handle_tag(&$body, &$str_tags, $profile_uid, $tag, $in_network = true) $newname = substr($name,6); $newname = substr($newname,0,-6); } + elseif((substr($name,0,1) === '"') && (substr($name,-1,1) === '"')) { + $newname = substr($name,1); + $newname = substr($newname,0,-1); + } // select someone from this user's contacts by name |