forked from GNUsocial/gnu-social
don't email replies to yourself
This commit is contained in:
parent
71b7bdbcbe
commit
1adce16dd8
@ -599,6 +599,10 @@ function mail_notify_attn($user, $notice)
|
||||
|
||||
$sender = $notice->getProfile();
|
||||
|
||||
if ($sender->id == $user->id) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$sender->hasRight(Right::EMAILONREPLY)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user