Skip to content

Commit

Permalink
restrict mention notifications from accounts with few followers
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Feb 18, 2024
1 parent 65a7c78 commit 861e90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/notify_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def call(recipient, type, activity)
private

def blocked_mention?
FeedManager.instance.filter?(:mentions, @notification.mention.status, @recipient)
@notification.from_account.followers_count < ENV.fetch('BLOCKED_MENTION_MIN_FOLLOWERS_COUNT', 1).to_i || FeedManager.instance.filter?(:mentions, @notification.mention.status, @recipient)
end

def following_sender?
Expand Down

0 comments on commit 861e90c

Please sign in to comment.