projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1e1db8
)
Fix build_application/1 match
author
Mark Felder
<feld@feld.me>
Tue, 2 Mar 2021 17:37:37 +0000
(11:37 -0600)
committer
Mark Felder
<feld@feld.me>
Tue, 2 Mar 2021 17:37:37 +0000
(11:37 -0600)
lib/pleroma/web/mastodon_api/views/status_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/views/status_view.ex
b/lib/pleroma/web/mastodon_api/views/status_view.ex
index bac897a57b9744a888c5b7f09a991216b9a7c82c..a7e762ac18139193fd9c14c29d0b8ee83b4742b0 100644
(file)
--- 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