From 521932c802dc922e7dd8137bb7e51667da5355d6 Mon Sep 17 00:00:00 2001 From: KMY Date: Tue, 10 Oct 2023 21:45:02 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20`LoginOnly`=E3=81=AE=E5=90=8D=E5=89=8D?= =?UTF-8?q?=E7=A9=BA=E9=96=93=E3=82=82=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/activitypub/parser/status_parser.rb | 2 +- app/lib/activitypub/tag_manager.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/activitypub/parser/status_parser.rb b/app/lib/activitypub/parser/status_parser.rb index 9c0145ad7a1129..d6d809a661cf2c 100644 --- a/app/lib/activitypub/parser/status_parser.rb +++ b/app/lib/activitypub/parser/status_parser.rb @@ -80,7 +80,7 @@ def visibility :public_unlisted elsif audience_cc.any? { |cc| ActivityPub::TagManager.instance.public_collection?(cc) } :unlisted - elsif audience_to.include?('as:LoginOnly') || audience_to.include?('LoginUser') + elsif audience_to.include?('kmyblue:LoginOnly') || audience_to.include?('as:LoginOnly') || audience_to.include?('LoginUser') :login elsif audience_to.include?(@magic_values[:followers_collection]) :private diff --git a/app/lib/activitypub/tag_manager.rb b/app/lib/activitypub/tag_manager.rb index 2c5323f199fcdc..8258b146356f2e 100644 --- a/app/lib/activitypub/tag_manager.rb +++ b/app/lib/activitypub/tag_manager.rb @@ -99,7 +99,7 @@ def to(status) when 'unlisted', 'public_unlisted', 'private' [account_followers_url(status.account)] when 'login' - [account_followers_url(status.account), 'as:LoginOnly', 'LoginUser'] + [account_followers_url(status.account), 'as:LoginOnly', 'kmyblue:LoginOnly', 'LoginUser'] when 'direct' if status.account.silenced? # Only notify followers if the account is locally silenced