aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-11 15:51:43 -0800
committerfriendica <info@friendica.com>2013-02-11 15:51:43 -0800
commit6db8e975357c1ac4a35a1048ff3f897ea55334bf (patch)
tree4693a7113ab290a8071ccf949ecfc836ede6a771 /include/items.php
parentba3cff6d9a505e22732c800430e34adb7e55f3a4 (diff)
downloadvolse-hubzilla-6db8e975357c1ac4a35a1048ff3f897ea55334bf.tar.gz
volse-hubzilla-6db8e975357c1ac4a35a1048ff3f897ea55334bf.tar.bz2
volse-hubzilla-6db8e975357c1ac4a35a1048ff3f897ea55334bf.zip
tag notifications now work.
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 3 insertions, 1 deletions
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;
}