Crate lemmy_apub[−][src]
Modules
Enums
Statics
Traits
Common methods provided by ActivityPub actors (community and person). Not all methods are implemented by all actors.
Common functions for ActivityPub objects, which are implemented by most (but not all) objects and actors in Lemmy.
Functions
Takes in a shortname of the type dessalines@xyz.tld or dessalines (assumed to be local), and outputs the actor id. Used in the API for communities and users.
Checks if the ID is allowed for sending or receiving.
Tries to find a post or comment in the local database, without any network requests. This is used to handle deletions and removals, because in case we dont have the object, we can simply ignore the activity.
Generates the ActivityPub ID for a given object type and ID.
Generates an apub endpoint for a given domain, IE xyz.tld
Store a sent or received activity in the database, for logging purposes. These records are not persistent.