diff options
author | Mark Felder <feld@feld.me> | 2021-03-02 11:37:37 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-03-02 11:37:37 -0600 |
commit | 85b2387f665045a303486d10e6879a46a7ab922e (patch) | |
tree | cc6c57cc90910c555dfa6884f536f3d305465244 | |
parent | b1e1db82bc2c076f2a7858ec63017c10dda1966b (diff) | |
download | pleroma-85b2387f665045a303486d10e6879a46a7ab922e.tar.gz |
Fix build_application/1 match
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 4 |
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 |