Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.Push.Subscription View Source

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %Pleroma.Web.Push.Subscription{
  __meta__: term(),
  data: term(),
  endpoint: term(),
  id: term(),
  inserted_at: term(),
  key_auth: term(),
  key_p256dh: term(),
  token: term(),
  token_id: term(),
  updated_at: term(),
  user: term(),
  user_id: term()
}

Link to this section Functions

Link to this function

create(user, token, params)

View Source
Link to this function

delete_if_exists(user, token)

View Source
Link to this function

get(user, token)

View Source
get(Pleroma.User.t(), Pleroma.Web.OAuth.Token.t()) ::
  {:ok, t()} | {:error, :not_found}

Gets subsciption by user & token

Link to this function

update(user, token, params)

View Source