View Source Mobilizon.Web.Cache.ActivityPub (Mobilizon v5.0.0-beta.1)
ActivityPub related cache.
Summary
Functions
Gets a actor by username and eventually domain.
Gets a comment by its UUID, with all associations loaded.
Gets a conversation participant by it's ID, with all associations loaded.
Gets a discussion by its slug, with all associations loaded.
Gets a local actor by username.
Gets a member by its UUID, with all associations loaded.
Gets a post by its slug, with all associations loaded.
Gets a public event by its UUID, with all associations loaded.
Gets a relay.
Gets a resource by its UUID, with all associations loaded.
Gets a todo by its UUID, with all associations loaded.
Gets a todo list by its UUID, with all associations loaded.
Functions
@spec get_actor_by_name(String.t()) :: {:commit, Mobilizon.Actors.Actor.t()} | {:ignore, nil}
Gets a actor by username and eventually domain.
@spec get_comment_by_uuid_with_preload(String.t()) :: {:commit, Mobilizon.Discussions.Comment.t()} | {:ignore, nil}
Gets a comment by its UUID, with all associations loaded.
@spec get_conversation_by_id_with_preload(String.t()) :: {:commit, Mobilizon.Todos.Todo.t()} | {:ignore, nil}
Gets a conversation participant by it's ID, with all associations loaded.
@spec get_discussion_by_slug_with_preload(String.t()) :: {:commit, Mobilizon.Discussions.Discussion.t()} | {:ignore, nil}
Gets a discussion by its slug, with all associations loaded.
@spec get_local_actor_by_name(String.t()) :: {:commit, Mobilizon.Actors.Actor.t()} | {:ignore, nil}
Gets a local actor by username.
@spec get_member_by_uuid_with_preload(String.t()) :: {:commit, Mobilizon.Actors.Member.t()} | {:ignore, nil}
Gets a member by its UUID, with all associations loaded.
@spec get_post_by_slug_with_preload(String.t()) :: {:commit, Mobilizon.Posts.Post.t()} | {:ignore, nil}
Gets a post by its slug, with all associations loaded.
@spec get_public_event_by_uuid_with_preload(String.t()) :: {:commit, Mobilizon.Events.Event.t()} | {:ignore, nil}
Gets a public event by its UUID, with all associations loaded.
@spec get_relay() :: {:commit, Mobilizon.Actors.Actor.t()} | {:ignore, nil}
Gets a relay.
@spec get_resource_by_uuid_with_preload(String.t()) :: {:commit, Mobilizon.Resources.Resource.t()} | {:ignore, nil}
Gets a resource by its UUID, with all associations loaded.
@spec get_todo_by_uuid_with_preload(String.t()) :: {:commit, Mobilizon.Todos.Todo.t()} | {:ignore, nil}
Gets a todo by its UUID, with all associations loaded.
@spec get_todo_list_by_uuid_with_preload(String.t()) :: {:commit, Mobilizon.Todos.TodoList.t()} | {:ignore, nil}
Gets a todo list by its UUID, with all associations loaded.