Add: _misskey_license
の送受信 (#968)
This commit is contained in:
parent
9c14810881
commit
c139f8947e
8 changed files with 110 additions and 3 deletions
|
@ -4,6 +4,7 @@ module ActivityPub::CaseTransform
|
|||
class << self
|
||||
NO_CONVERT_VALUES = %w(
|
||||
_misskey_content
|
||||
_misskey_license
|
||||
_misskey_quote
|
||||
).freeze
|
||||
|
||||
|
|
|
@ -34,6 +34,6 @@ class ActivityPub::Parser::CustomEmojiParser
|
|||
end
|
||||
|
||||
def license
|
||||
@json['license'] || @json['licence']
|
||||
@json.dig('_misskey_license', 'freeText') || @json['license'] || @json['licence']
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue