View Source Mobilizon.Federation.ActivityStream.Converter.Post (Mobilizon v5.0.0-beta.1)
Post converter.
This module allows to convert posts from ActivityStream format to our own internal one, and back.
Summary
Functions
Converts an AP object data to our internal data structure.
Convert an post struct to an ActivityStream representation
Functions
Converts an AP object data to our internal data structure.
@spec model_to_as(Mobilizon.Posts.Post.t()) :: map()
Convert an post struct to an ActivityStream representation