1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.MastodonAPI.AppView do
8 alias Pleroma.Web.OAuth.App
10 def render("show.json", %{app: %App{website: webiste, client_name: name}}) do
16 vapid_key = Pleroma.Web.Push.vapid_config() |> Keyword.get(:public_key)
20 Map.put(result, "vapid_key", vapid_key)