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.
13 lines
375 B
Ruby
13 lines
375 B
Ruby
module Export
|
|
# This is a serializer for the user's own relayables. We remove signature from the own relayables since it isn't
|
|
# useful and takes space.
|
|
class OwnRelayablesSerializer < FederationEntitySerializer
|
|
private
|
|
|
|
def modify_serializable_object(hash)
|
|
super.tap {|hash|
|
|
hash[:entity_data].delete(:author_signature)
|
|
}
|
|
end
|
|
end
|
|
end
|