View Source ActivityPub.Federator.Transformer (bonfire_umbrella v0.9.10-cooperation-beta.62)

This module normalises outgoing data to conform with AS2/AP specs and handles incoming objects and activities

Summary

Functions

Modifies an incoming AP object (mastodon format) to our internal format.

Handles incoming data, inserts it into the database and triggers side effects if the data is a supported activity type.

Translates MN Entity to an AP compatible format

Serialized Mastodon-compatible replies collection containing self-replies. Based on Mastodon's ActivityPub::NoteSerializer#replies.

Functions

Link to this function

fix_context(object, options)

View Source
Link to this function

fix_in_reply_to(object, options \\ [])

View Source
Link to this function

fix_object(object, options \\ [])

View Source

Modifies an incoming AP object (mastodon format) to our internal format.

Link to this function

fix_quote_url(object, options \\ [])

View Source
Link to this function

fix_replies(data, options)

View Source
Link to this function

format_input(text, binary, options \\ [])

View Source
Link to this function

handle_incoming(data, opts \\ [])

View Source

Handles incoming data, inserts it into the database and triggers side effects if the data is a supported activity type.

Link to this function

maybe_handle_other_activity(data)

View Source

Translates MN Entity to an AP compatible format

Link to this function

preserve_privacy_of_outgoing(other, target_instance_uri \\ nil)

View Source

Serialized Mastodon-compatible replies collection containing self-replies. Based on Mastodon's ActivityPub::NoteSerializer#replies.