Fix quote is not set in noteserializer
This commit is contained in:
parent
77eb7c03d9
commit
818bcc0277
4 changed files with 33 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
||||
include FormattingHelper
|
||||
|
||||
context_extensions :atom_uri, :conversation, :sensitive, :voters_count, :searchable_by, :references, :limited_scope
|
||||
context_extensions :atom_uri, :conversation, :sensitive, :voters_count, :searchable_by, :references, :limited_scope, :quote_uri
|
||||
|
||||
attributes :id, :type, :summary,
|
||||
:in_reply_to, :published, :url,
|
||||
|
@ -165,7 +165,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def quote?
|
||||
object.references.count == 1 && object.account.user&.single_ref_to_quote
|
||||
object.references.count == 1 && object.account.user&.settings&.[]('single_ref_to_quote')
|
||||
end
|
||||
|
||||
def quote_uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue