activitypub: case transform: support _misskey keys without messing them up

pull/36/head
Ariadne Conill 2022-12-25 04:55:02 +00:00
parent 61565488a6
commit 14d001574c
1 changed files with 2 additions and 0 deletions

View File

@ -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