From: Mark Felder Date: Tue, 2 Mar 2021 17:37:37 +0000 (-0600) Subject: Fix build_application/1 match X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=85b2387f665045a303486d10e6879a46a7ab922e;p=akkoma Fix build_application/1 match --- diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index bac897a57..a7e762ac1 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -536,6 +536,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do end @spec build_application(map() | nil) :: map() | nil - defp build_application(%{type: _type, name: name, url: url}), do: %{name: name, website: url} + defp build_application(%{"type" => _type, "name" => name, "url" => url}), + do: %{name: name, website: url} + defp build_application(_), do: nil end