diff options
author | friendica <info@friendica.com> | 2013-09-24 19:43:28 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-24 19:43:28 -0700 |
commit | d62508072c714305e991b46cc388fbf4bd4be98e (patch) | |
tree | c3035de34374bc467bf586f1386f8605325b9bfc /include/enotify.php | |
parent | 2a0406ec8c0b0c35ef3583a7866da756f893796c (diff) | |
download | volse-hubzilla-d62508072c714305e991b46cc388fbf4bd4be98e.tar.gz volse-hubzilla-d62508072c714305e991b46cc388fbf4bd4be98e.tar.bz2 volse-hubzilla-d62508072c714305e991b46cc388fbf4bd4be98e.zip |
don't send email notifications for likes (as comment notifications). We'll need a separate preference for whether you want notifications for likes.
Diffstat (limited to 'include/enotify.php')
-rw-r--r-- | include/enotify.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/enotify.php b/include/enotify.php index b2a4f5856..147023f41 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -51,9 +51,9 @@ function notification($params) { $additional_mail_header = ""; if(array_key_exists('item',$params)) { + require_once('include/conversation.php'); // if it's a normal item... if(array_key_exists('verb',$params['item'])) { - require_once('include/conversation.php'); // localize_item() alters the original item so make a copy first $i = $params['item']; logger('calling localize'); @@ -89,6 +89,11 @@ function notification($params) { if($params['type'] == NOTIFY_COMMENT) { // logger("notification: params = " . print_r($params, true), LOGGER_DEBUG); + // ignore like/unlike activity on posts - they probably require a sepearate notification preference + + if(array_key_exists('item',$params) && (! visible_activity($params['item']))) + return; + $parent_id = $params['parent']; // Check to see if there was already a notify for this post. |