run mix format

This commit is contained in:
William Pitcock 2018-08-06 08:26:36 +00:00
parent 5abf9ad602
commit 0ca9b9ff96
1 changed files with 5 additions and 1 deletions

View File

@ -562,7 +562,11 @@ def user_data_from_user_object(data) do
# nickname can be nil because of virtual actors # nickname can be nil because of virtual actors
user_data = user_data =
if data["preferredUsername"] do if data["preferredUsername"] do
Map.put(user_data, :nickname, "#{data["preferredUsername"]}@#{URI.parse(data["id"]).host}") Map.put(
user_data,
:nickname,
"#{data["preferredUsername"]}@#{URI.parse(data["id"]).host}"
)
else else
Map.put(user_data, :nickname, nil) Map.put(user_data, :nickname, nil)
end end