mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
always allow DMs from staff (#8993)
This commit is contained in:
parent
fe9815a462
commit
f5e2e96e95
1 changed files with 5 additions and 0 deletions
|
@ -59,9 +59,14 @@ class NotifyService < BaseService
|
||||||
@notification.target_status.in_reply_to_account_id == @recipient.id && @notification.target_status.thread&.direct_visibility?
|
@notification.target_status.in_reply_to_account_id == @recipient.id && @notification.target_status.thread&.direct_visibility?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def from_staff?
|
||||||
|
@notification.from_account.local? && @notification.from_account.user.present? && @notification.from_account.user.staff?
|
||||||
|
end
|
||||||
|
|
||||||
def optional_non_following_and_direct?
|
def optional_non_following_and_direct?
|
||||||
direct_message? &&
|
direct_message? &&
|
||||||
@recipient.user.settings.interactions['must_be_following_dm'] &&
|
@recipient.user.settings.interactions['must_be_following_dm'] &&
|
||||||
|
!from_staff? &&
|
||||||
!following_sender? &&
|
!following_sender? &&
|
||||||
!response_to_recipient?
|
!response_to_recipient?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue