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.

Link to this function

get_comment_by_uuid_with_preload(uuid)

View Source
@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.

Link to this function

get_conversation_by_id_with_preload(id)

View Source
@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.

Link to this function

get_discussion_by_slug_with_preload(slug)

View Source
@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.

Link to this function

get_local_actor_by_name(name)

View Source
@spec get_local_actor_by_name(String.t()) ::
  {:commit, Mobilizon.Actors.Actor.t()} | {:ignore, nil}

Gets a local actor by username.

Link to this function

get_member_by_uuid_with_preload(uuid)

View Source
@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.

Link to this function

get_post_by_slug_with_preload(slug)

View Source
@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.

Link to this function

get_public_event_by_uuid_with_preload(uuid)

View Source
@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.

Link to this function

get_resource_by_uuid_with_preload(uuid)

View Source
@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.

Link to this function

get_todo_by_uuid_with_preload(uuid)

View Source
@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.

Link to this function

get_todo_list_by_uuid_with_preload(uuid)

View Source
@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.