diff options
author | friendica <info@friendica.com> | 2014-04-11 20:00:34 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-11 20:00:34 -0700 |
commit | f93b56de5538d32c9171750833d404d741128df3 (patch) | |
tree | 549a26b6903b687525386ea90b4033e722ebe176 | |
parent | c7d6179a0f3e7eab3d292804ebc7cc92091c25ac (diff) | |
download | volse-hubzilla-f93b56de5538d32c9171750833d404d741128df3.tar.gz volse-hubzilla-f93b56de5538d32c9171750833d404d741128df3.tar.bz2 volse-hubzilla-f93b56de5538d32c9171750833d404d741128df3.zip |
no this is the way to do it
-rwxr-xr-x | include/items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 7753ff701..f6efea58c 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'); |