Skip to content

Commit 14d0015

Browse files
committed
activitypub: case transform: support _misskey keys without messing them up
1 parent 6156548 commit 14d0015

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/lib/activitypub/case_transform.rb

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def camel_lower(value)
1414
when String
1515
camel_lower_cache[value] ||= if value.start_with?('_:')
1616
'_:' + value.gsub(/\A_:/, '').underscore.camelize(:lower)
17+
elsif value.start_with?('_')
18+
value
1719
else
1820
value.underscore.camelize(:lower)
1921
end

0 commit comments

Comments
 (0)