From 207a32c12a42811b366fcb8eeb2679b0aff3225c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Sun, 20 Oct 2024 18:05:58 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E5=90=8D=E5=89=8D=E7=A9=BA=E9=96=93?= =?UTF-8?q?=E4=BB=98=E3=81=8D=E3=81=AE`EmojiReact`=E3=82=A2=E3=82=AF?= =?UTF-8?q?=E3=83=86=E3=82=A3=E3=83=93=E3=83=86=E3=82=A3=E3=82=92=E5=8F=97?= =?UTF-8?q?=E4=BF=A1=20(#888)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/activitypub/process_collection_service.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/activitypub/process_collection_service.rb b/app/services/activitypub/process_collection_service.rb index 4f049a5ae940b0..6cdca7fc341c93 100644 --- a/app/services/activitypub/process_collection_service.rb +++ b/app/services/activitypub/process_collection_service.rb @@ -29,6 +29,10 @@ def call(body, actor, **options) @json.delete('signature') unless safe_for_forwarding?(original_json, @json) end + # any namespaces for general-original activity type + @json['type'] = 'EmojiReact' if original_json['type'] == 'EmojiReact' + @json['type'] = 'EmojiReaction' if original_json['type'] == 'EmojiReaction' + case @json['type'] when 'Collection', 'CollectionPage' process_items @json['items']