View Source Mobilizon.Federation.ActivityPub.Audience (Mobilizon v5.0.0-beta.1)
Tools for calculating content audience
Summary
Types
Functions
@spec get_audience( Mobilizon.Federation.ActivityPub.Types.Entity.t() | Mobilizon.Events.Participant.t() ) :: audience()
Get audience for an entity
@spec get_to_and_cc( Mobilizon.Actors.Actor.t(), list(), :direct | :private | :public | :unlisted | {:list, any()} ) :: {list(), list()}
Determines the full audience based on mentions for an audience
For a public audience:
to
: the mentioned actors, the eventual actor we're replying to and the publiccc
: the actor's followers
For an unlisted audience:
to
: the mentioned actors, actor's followers and the eventual actor we're replying tocc
: public
For a private audience:
to
: the mentioned actors, actor's followers and the eventual actor we're replying tocc
: none
For a direct audience:
to
: the mentioned actors and the eventual actor we're replying tocc
: none