Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.ActivityPub.Publisher View Source
ActivityPub outgoing federation module.
Link to this section Summary
Functions
Determine a user inbox to use based on heuristics. These heuristics
are based on an approximation of the sharedInbox
rules in the
ActivityPub specification.
Gathers nodeinfo protocol names supported by the federation module.
Gathers links used by an outgoing federation module for WebFinger output.
Determine if an activity can be represented by running it through Transmogrifier.
Publishes an activity to all relevant peers.
Publish a single message to a peer. Takes a struct with the following parameters set
Link to this section Functions
Determine a user inbox to use based on heuristics. These heuristics
are based on an approximation of the sharedInbox
rules in the
ActivityPub specification.
Please do not edit this function (or its children) without reading the spec, as editing the code is likely to introduce some breakage without some familiarity.
Gathers nodeinfo protocol names supported by the federation module.
Callback implementation for Pleroma.Web.Federator.Publisher.gather_nodeinfo_protocol_names/0
.
Gathers links used by an outgoing federation module for WebFinger output.
Callback implementation for Pleroma.Web.Federator.Publisher.gather_webfinger_links/1
.
Determine if an activity can be represented by running it through Transmogrifier.
Publishes an activity to all relevant peers.
Publish a single message to a peer. Takes a struct with the following parameters set:
inbox
: the inbox to publish tojson
: the JSON message body representing the ActivityPub messageactor
: the actor which is signing the messageid
: the ActivityStreams URI of the message