プロキシ判定ロジックを調整
This commit is contained in:
parent
41c1aaf54d
commit
d94713594c
2 changed files with 8 additions and 7 deletions
|
@ -52,11 +52,12 @@ class ActivityPub::Activity::Follow < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def proxy_account?
|
||||
(@account.username.downcase.include?('proxy') ||
|
||||
@account.username.downcase.include?('followbot') ||
|
||||
(@account.username.downcase.include?('_proxy') ||
|
||||
@account.username.downcase.end_with?('proxy') ||
|
||||
@account.username.downcase.include?('_bot_') ||
|
||||
@account.username.downcase.end_with?('bot') ||
|
||||
@account.display_name&.downcase&.include?('proxy') ||
|
||||
@account.display_name&.include?('プロキシ') ||
|
||||
@account.note&.downcase&.include?('proxy') ||
|
||||
@account.note&.include?('プロキシ')) && proxyable_software?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue