From 5a960c3abd896514c3aeb1340a289e97232d4ccc Mon Sep 17 00:00:00 2001 From: KMY Date: Sat, 7 Oct 2023 13:24:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=AD=E3=82=AD=E3=82=B7=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=E6=9D=A1=E4=BB=B6=E3=82=92=E5=BD=A9=E5=BA=A6=E8=AA=BF?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/activitypub/activity/follow.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/lib/activitypub/activity/follow.rb b/app/lib/activitypub/activity/follow.rb index 8d9e37f172..d1297bcfe8 100644 --- a/app/lib/activitypub/activity/follow.rb +++ b/app/lib/activitypub/activity/follow.rb @@ -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?