commit: 85b2387f665045a303486d10e6879a46a7ab922e
parent b1e1db82bc2c076f2a7858ec63017c10dda1966b
Author: Mark Felder <feld@feld.me>
Date: Tue, 2 Mar 2021 11:37:37 -0600
Fix build_application/1 match
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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