From 6db8e975357c1ac4a35a1048ff3f897ea55334bf Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 11 Feb 2013 15:51:43 -0800 Subject: tag notifications now work. --- include/items.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index e3ad1aae5..611def924 100755 --- a/include/items.php +++ b/include/items.php @@ -1644,7 +1644,9 @@ function tag_deliver($uid,$item_id) { $body = preg_replace('/\[share(.*?)\[\/share\]/','',$item['body']); - if(! preg_match('/@\[url=(.*?)\]' . $u[0]['channel_name'] . '\[\/url\]/',$matches, $body)) { + $pattern = '/@\[url\=' . preg_quote($term['url'],'/') . '\]' . preg_quote($u[0]['channel_name'],'/') . '\[\/url\]/'; + + if(! preg_match($pattern,$body,$matches)) { logger('tag_deliver: mention was in a reshare - ignoring'); return; } -- cgit v1.2.3