parent
eb28fa8e53
commit
f29f3c5c85
4 changed files with 75 additions and 5 deletions
|
@ -140,7 +140,19 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def virtual_tags
|
||||
object.active_mentions.to_a.sort_by(&:id) + object.tags + object.emojis
|
||||
object.active_mentions.to_a.sort_by(&:id) + object.tags + object.emojis + virtual_tags_of_quote
|
||||
end
|
||||
|
||||
def virtual_tags_of_quote
|
||||
return [] unless object.quote?
|
||||
|
||||
[
|
||||
{
|
||||
type: 'Link',
|
||||
mediaType: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||
href: quote_uri,
|
||||
},
|
||||
]
|
||||
end
|
||||
|
||||
def atom_uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue