Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.Federator.Publisher behaviour View Source
Defines the contract used by federation implementations to publish messages to their peers.
Link to this section Summary
Functions
Enqueue publishing a single activity.
Callbacks
Gathers nodeinfo protocol names supported by the federation module.
Gathers links used by an outgoing federation module for WebFinger output.
Determine whether an activity can be relayed using the federation module.
Relays an activity to all specified peers.
Relays an activity to a specified peer, determined by the parameters. The parameters used are controlled by the federation module.
Link to this section Functions
Enqueue publishing a single activity.
gather_nodeinfo_protocol_names()
View Sourcegather_nodeinfo_protocol_names() :: list()
gather_webfinger_links(user)
View Sourcegather_webfinger_links(Pleroma.User.t()) :: list()
publish(user, activity)
View Sourcepublish(Pleroma.User.t(), Pleroma.Activity.t()) :: :ok
Link to this section Callbacks
gather_nodeinfo_protocol_names()
View Sourcegather_nodeinfo_protocol_names() :: list()
Gathers nodeinfo protocol names supported by the federation module.
gather_webfinger_links(arg1)
View Sourcegather_webfinger_links(Pleroma.User.t()) :: list()
Gathers links used by an outgoing federation module for WebFinger output.
is_representable?(arg1)
View Sourceis_representable?(Pleroma.Activity.t()) :: boolean()
Determine whether an activity can be relayed using the federation module.
publish(arg1, arg2)
View Sourcepublish(Pleroma.User.t(), Pleroma.Activity.t()) :: :ok | {:error, any()}
Relays an activity to all specified peers.
Relays an activity to a specified peer, determined by the parameters. The parameters used are controlled by the federation module.