also send misskey quote data
This commit is contained in:
parent
2029340d6a
commit
1b1c4ff940
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
||||||
:conversation
|
:conversation
|
||||||
|
|
||||||
attribute :quote_uri, if: -> { object.quote? }
|
attribute :quote_uri, if: -> { object.quote? }
|
||||||
|
attribute :misskey_quote, key: :_misskey_quote, if: -> { object.quote? }
|
||||||
|
|
||||||
attribute :content
|
attribute :content
|
||||||
attribute :content_map, if: :language?
|
attribute :content_map, if: :language?
|
||||||
|
@ -156,6 +157,8 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
||||||
ActivityPub::TagManager.instance.uri_for(object.quote) if object.quote?
|
ActivityPub::TagManager.instance.uri_for(object.quote) if object.quote?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
alias misskey_quote quote_uri
|
||||||
|
|
||||||
def local?
|
def local?
|
||||||
object.account.local?
|
object.account.local?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue