1 defmodule Pleroma.Web.MastodonAPI.PushSubscriptionView do
3 alias Pleroma.Web.MastodonAPI.PushSubscriptionView
5 def render("push_subscription.json", %{subscription: subscription}) do
7 id: to_string(subscription.id),
8 endpoint: subscription.endpoint,
9 alerts: Map.get(subscription.data, "alerts")