Fix link verification for remote accounts (#8868)
This commit is contained in:
parent
49b182cd51
commit
7fe137d2f7
4 changed files with 117 additions and 74 deletions
|
@ -11,11 +11,7 @@ class REST::AccountSerializer < ActiveModel::Serializer
|
|||
has_many :emojis, serializer: REST::CustomEmojiSerializer
|
||||
|
||||
class FieldSerializer < ActiveModel::Serializer
|
||||
attributes :name, :value
|
||||
|
||||
attribute :verified_at, if: :verifiable?
|
||||
|
||||
delegate :verifiable?, to: :object
|
||||
attributes :name, :value, :verified_at
|
||||
|
||||
def value
|
||||
Formatter.instance.format_field(object.account, object.value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue