mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(notif): prevent manage-request users receiving auto-approve notif from their requests (#1707) (#1709)
Email and webpush agents will filter out these users. Discord agent won't @ them.
This commit is contained in:

committed by
GitHub

parent
8a805716e3
commit
9ead8bb1f1
@@ -208,7 +208,10 @@ class EmailAgent
|
||||
NotificationAgentKey.EMAIL,
|
||||
type
|
||||
) ??
|
||||
true))
|
||||
true)) &&
|
||||
// Check if it's the user's own auto-approved request
|
||||
(type !== Notification.MEDIA_AUTO_APPROVED ||
|
||||
user.id !== payload.request?.requestedBy.id)
|
||||
)
|
||||
.map(async (user) => {
|
||||
logger.debug('Sending email notification', {
|
||||
|
Reference in New Issue
Block a user