プロキシ判定条件を彩度調整

This commit is contained in:
KMY 2023-10-07 13:24:04 +09:00
parent d94713594c
commit 5a960c3abd

View file

@ -58,7 +58,9 @@ class ActivityPub::Activity::Follow < ActivityPub::Activity
@account.username.downcase.end_with?('bot') ||
@account.display_name&.downcase&.include?('proxy') ||
@account.display_name&.include?('プロキシ') ||
@account.note&.include?('プロキシ')) && proxyable_software?
@account.note&.include?('プロキシ')) &&
(@account.following_count.zero? || @account.following_count > @account.followers_count) &&
proxyable_software?
end
def proxyable_software?