Skip to content

Commit

Permalink
スパム判定を変更
Browse files Browse the repository at this point in the history
- アカウント作成日のチェックを1週間に変更
  • Loading branch information
naaaaaaaaaaaf committed Feb 18, 2024
1 parent 55c9f4f commit 6ede5be
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 @@ -439,7 +439,7 @@ def like_a_spam?
(
!@status.account.local? &&
@status.account.followers_count.zero? &&
@status.account.created_at > 1.day.ago &&
@status.account.created_at > 7.day.ago &&
@mentions.count >= 2
)
end
Expand Down

0 comments on commit 6ede5be

Please sign in to comment.