ActivityPub.Federator.Transformer (Bonfire v1.0.0-social-rc.2.1)

View Source

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

Summary

Functions

add_emoji_tags(object)

fix_actor(data)

fix_addressing(object)

fix_attachments(object)

fix_content_map(object)

fix_context(object, options)

fix_emoji(object)

fix_in_reply_to(object, options \\ [])

fix_object(object, options \\ [])

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

fix_quote_url(object, options \\ [])

fix_replies(data, options)

fix_summary(object)

fix_tag(object)

fix_url(object)

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

handle_incoming(data, opts \\ [])

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

maybe_handle_other_activity(data)

prepare_outgoing(data)

Translates MN Entity to an AP compatible format

preserve_privacy_of_outgoing(other, target_instance_host \\ nil, target_actor_id \\ nil)

replies(arg1)

set_replies(object)

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

take_emoji_tags(arg1)