Skip to content

Commit

Permalink
Fix: 名前空間付きのEmojiReactアクティビティを受信 (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Oct 20, 2024
1 parent 46fec44 commit 207a32c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/services/activitypub/process_collection_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 207a32c

Please sign in to comment.