Fix build_application/1 match
authorMark Felder <feld@feld.me>
Tue, 2 Mar 2021 17:37:37 +0000 (11:37 -0600)
committerMark Felder <feld@feld.me>
Tue, 2 Mar 2021 17:37:37 +0000 (11:37 -0600)
lib/pleroma/web/mastodon_api/views/status_view.ex

index bac897a57b9744a888c5b7f09a991216b9a7c82c..a7e762ac18139193fd9c14c29d0b8ee83b4742b0 100644 (file)
@@ -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