aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-11 16:31:48 -0700
committerfriendica <info@friendica.com>2014-04-11 16:31:48 -0700
commitc7d6179a0f3e7eab3d292804ebc7cc92091c25ac (patch)
treec6073de57df1c204ec9890b88df38616aa790c13 /include
parent8b39b5ae4e56535c11fe192f64db3e923d608066 (diff)
downloadvolse-hubzilla-c7d6179a0f3e7eab3d292804ebc7cc92091c25ac.tar.gz
volse-hubzilla-c7d6179a0f3e7eab3d292804ebc7cc92091c25ac.tar.bz2
volse-hubzilla-c7d6179a0f3e7eab3d292804ebc7cc92091c25ac.zip
Use @+ to tag a forum and also restrict the post to the forum, this leaves @! tags private - period.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index a7d3a21ce..7753ff701 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2450,7 +2450,7 @@ function tag_deliver($uid,$item_id) {
$body = preg_replace('/\[share(.*?)\[\/share\]/','',$body);
- $pattern = '/@\!?\[zrl\=' . preg_quote($term['url'],'/') . '\]' . preg_quote($u[0]['channel_name'],'/') . '\[\/zrl\]/';
+ $pattern = '/@\+?\[zrl\=' . preg_quote($term['url'],'/') . '\]' . preg_quote($u[0]['channel_name'],'/') . '\[\/zrl\]/';
if(! preg_match($pattern,$body,$matches)) {
logger('tag_deliver: mention was in a reshare - ignoring');
@@ -2586,7 +2586,7 @@ function tgroup_check($uid,$item) {
$body = preg_replace('/\[share(.*?)\[\/share\]/','',$item['body']);
- $pattern = '/@\!?\[zrl\=' . preg_quote($term['url'],'/') . '\]' . preg_quote($u[0]['channel_name'],'/') . '\[\/zrl\]/';
+ $pattern = '/@\+?\[zrl\=' . preg_quote($term['url'],'/') . '\]' . preg_quote($u[0]['channel_name'],'/') . '\[\/zrl\]/';
if(! preg_match($pattern,$body,$matches)) {
logger('tgroup_check: mention was in a reshare - ignoring');