projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11d40e9
)
Apply 2 suggestion(s) to 1 file(s)
author
Alex Gleason
<alex@alexgleason.me>
Thu, 31 Dec 2020 18:51:57 +0000
(18:51 +0000)
committer
Alex Gleason
<alex@alexgleason.me>
Thu, 31 Dec 2020 18:51:57 +0000
(18:51 +0000)
lib/pleroma/web/web_finger.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/web_finger.ex
b/lib/pleroma/web/web_finger.ex
index 7c009388a6714450305805bb5d1214a80bb63568..a109e1accfcaa0287c169f4b367d10451197e50f 100644
(file)
--- a/
lib/pleroma/web/web_finger.ex
+++ b/
lib/pleroma/web/web_finger.ex
@@
-59,7
+59,7
@@
defmodule Pleroma.Web.WebFinger do
end
defp gather_aliases(%User{} = user) do
- [user.ap_id
] ++ user.also_known_as
+ [user.ap_id
| user.also_known_as]
end
def represent_user(user, "JSON") do
@@
-76,8
+76,9
@@
defmodule Pleroma.Web.WebFinger do
{:ok, user} = User.ensure_keys_present(user)
aliases =
- gather_aliases(user)
- |> Enum.map(fn the_alias -> {:Alias, the_alias} end)
+ user
+ |> gather_aliases()
+ |> Enum.map(&{:Alias, &1})
links =
gather_links(user)