From 14d001574c7b823929ee292851aa101502508a77 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 25 Dec 2022 04:55:02 +0000 Subject: [PATCH] activitypub: case transform: support _misskey keys without messing them up --- app/lib/activitypub/case_transform.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/activitypub/case_transform.rb b/app/lib/activitypub/case_transform.rb index 7f716f8624..ef0c6e1f91 100644 --- a/app/lib/activitypub/case_transform.rb +++ b/app/lib/activitypub/case_transform.rb @@ -14,6 +14,8 @@ module ActivityPub::CaseTransform when String camel_lower_cache[value] ||= if value.start_with?('_:') '_:' + value.gsub(/\A_:/, '').underscore.camelize(:lower) + elsif value.start_with?('_') + value else value.underscore.camelize(:lower) end