aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2021-03-02 18:40:35 +0000
committerfeld <feld@feld.me>2021-03-02 18:40:35 +0000
commit210aa42f74494864d70f97711204938cbcc4a19a (patch)
tree8b02ab27234f69243a03a7132f1730177cfbf5fc /lib
parent4cb166e979ea66a1c79995dacacbcf44fbf7365f (diff)
parentccbf162088951e4b7f28291ca4cd9b9280b40857 (diff)
downloadpleroma-210aa42f74494864d70f97711204938cbcc4a19a.tar.gz
Merge branch 'application-to-generator' into 'develop'
Status application field: test improvements See merge request pleroma/pleroma!3356
Diffstat (limited to 'lib')
-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