This commit is contained in:
Sho Kusano 2024-02-18 22:15:43 +09:00 committed by YoheiZuho
parent 6e76cbb0e4
commit c2f59a2848

View File

@ -456,9 +456,9 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
def like_a_spam?
(
!@status.account.local? &&
@status.account.followers_count.zero? &&
@status.account.created_at > 1.day.ago &&
@mentions.count >= 2
@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
)
end
end