View Source Mobilizon.Federation.ActivityStream.Converter.Actor (Mobilizon v5.0.0-beta.1)

Actor converter.

This module allows to convert events from ActivityStream format to our own internal one, and back.

Summary

Functions

Converts an AP object data to our internal data structure.

Convert an actor struct to an ActivityStream representation.

Functions

@spec as_to_model_data(map()) :: map() | {:error, :actor_not_allowed_type}

Converts an AP object data to our internal data structure.

@spec model_to_as(Mobilizon.Actors.Actor.t()) :: map()

Convert an actor struct to an ActivityStream representation.