ignore tagged items in reshares from notifications and tag_delivery

This commit is contained in:
friendica 2013-01-12 18:35:27 -08:00
parent d5c71e5691
commit 4f6c4f4d2d

View File

@ -1552,6 +1552,17 @@ function tag_deliver($uid,$item_id) {
else
return;
// Now let's check for a reshare so we don't spam a forum
$body = preg_replace('/\[share(.*?)\[\/share\]/','',$item['body']);
if(! preg_match('/@\[url=(.*?)\]' . $u[0]['channel_name'] . '\[\/url\]/',$matches, $body)) {
logger('tag_deliver: mention was in a reshare - ignoring');
return;
}
// send a notification
require_once('include/enotify.php');