Merge branch 'support/issue_442' into 'develop'
[akkoma] / lib / pleroma / web / mastodon_api / views / push_subscription_view.ex
index a910bb43e991bb16a7dda0f9b3a77feb0215b905..c8b95d14cb420c82eecfc107f57c4a857ddf8017 100644 (file)
@@ -1,14 +1,11 @@
 defmodule Pleroma.Web.MastodonAPI.PushSubscriptionView do
   use Pleroma.Web, :view
-  alias Pleroma.Web.MastodonAPI.PushSubscriptionView
 
   def render("push_subscription.json", %{subscription: subscription}) do
     %{
       id: to_string(subscription.id),
       endpoint: subscription.endpoint,
-      alerts: Map.get(subscription.data, "alerts"),
-      # TODO: generate VAPID server key
-      server_key: "N/A"
+      alerts: Map.get(subscription.data, "alerts")
     }
   end
 end