View Source Mobilizon.GraphQL.Resolvers.Media (Mobilizon v4.1.0-alpha.1)
Handles the media-related GraphQL calls
Summary
Functions
Return the total media size for an actor
Get media for an event
Remove a media that the user owns
Return the total media size for a local user
Functions
@spec actor_size(map(), map(), map()) :: {:ok, integer()} | {:error, :unauthorized} | {:error, :unauthenticated}
Return the total media size for an actor
Get media for an event
See Mobilizon.Web.Resolvers.Event.create_event/3
@spec remove_media(map(), map(), map()) :: {:ok, Mobilizon.Medias.Media.t()} | {:error, :unauthorized} | {:error, :unauthenticated} | {:error, :not_found}
Remove a media that the user owns
@spec upload_media(map(), map(), map()) :: {:ok, Mobilizon.Medias.Media.t()} | {:error, any()}
@spec user_size(map(), map(), map()) :: {:ok, integer()} | {:error, :unauthorized} | {:error, :unauthenticated}
Return the total media size for a local user