This commit introduces changes to the user data export archive format. This extends data set which is included in the archive. This data can be then imported to other pods when this feature is implemented. Also the commit adds the archive format json schema. ATM it is used in automatic tests only, but in future it will also be used to validate incoming archives.
17 lines
293 B
Ruby
17 lines
293 B
Ruby
module Export
|
|
class PersonMetadataSerializer < ActiveModel::Serializer
|
|
attributes :guid,
|
|
:account_id,
|
|
:public_key
|
|
|
|
private
|
|
|
|
def account_id
|
|
object.diaspora_handle
|
|
end
|
|
|
|
def public_key
|
|
object.serialized_public_key
|
|
end
|
|
end
|
|
end
|