Skip to content

Commit

Permalink
Don't send notifications from blocked users
Browse files Browse the repository at this point in the history
  • Loading branch information
RedEnchilada committed Sep 12, 2014
1 parent 8beb278 commit bb2b10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Notification/User_notification.php
Expand Up @@ -165,7 +165,7 @@ static function getAllForUser($user) {
}

static function saveNew($from, $to, $type, $arg1 = null, $arg2 = null) {
if(!$from || !$to || $from->id == null || $to->id == null)
if(!$from || !$to || $from->id == null || $to->id == null || $to->hasBlocked($from))
return false;
$notify = new User_notification();
$notify->user_id = $to->id;
Expand Down

0 comments on commit bb2b10c

Please sign in to comment.