summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-03-02 11:37:37 -0600
committerMark Felder <feld@feld.me>2021-03-02 11:37:37 -0600
commit85b2387f665045a303486d10e6879a46a7ab922e (patch)
treecc6c57cc90910c555dfa6884f536f3d305465244
parentb1e1db82bc2c076f2a7858ec63017c10dda1966b (diff)
Fix build_application/1 match
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex4
1 files changed, 3 insertions, 1 deletions
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