Skip to content

Commit

Permalink
Merge pull request #1943 from best-friends/reject-spammer-with-enviro…
Browse files Browse the repository at this point in the history
…nment-2

Change to correct inequality sign
  • Loading branch information
rosylilly authored Feb 18, 2024
2 parents 0addadf + 398514c commit e5090c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/activitypub/activity/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def increment_voters_count!
def like_a_spam?
(
!@status.account.local? &&
@status.account.followers_count > SPAM_FILTER_MINIMUM_FOLLOWERS &&
@status.account.followers_count <= SPAM_FILTER_MINIMUM_FOLLOWERS &&
@status.account.created_at > SPAM_FILTER_MINIMUM_CREATE_DAYS.day.ago &&
@mentions.count > SPAM_FILTER_MINIMUM_MENTIONS
)
Expand Down

0 comments on commit e5090c4

Please sign in to comment.