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

Comment 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.

Make an AS comment object from an existing Comment structure.

Functions

Link to this function

as_to_model_data(object)

View Source
@spec as_to_model_data(map()) :: map() | {:error, atom()}

Converts an AP object data to our internal data structure.

@spec model_to_as(Mobilizon.Discussions.Comment.t()) :: map()

Make an AS comment object from an existing Comment structure.

A "soft-deleted" comment is a tombstone