aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-11 20:00:34 -0700
committerfriendica <info@friendica.com>2014-04-11 20:00:34 -0700
commitf93b56de5538d32c9171750833d404d741128df3 (patch)
tree549a26b6903b687525386ea90b4033e722ebe176 /include
parentc7d6179a0f3e7eab3d292804ebc7cc92091c25ac (diff)
downloadvolse-hubzilla-f93b56de5538d32c9171750833d404d741128df3.tar.gz
volse-hubzilla-f93b56de5538d32c9171750833d404d741128df3.tar.bz2
volse-hubzilla-f93b56de5538d32c9171750833d404d741128df3.zip
no this is the way to do it
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 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');