mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
run mix format
This commit is contained in:
parent
5abf9ad602
commit
0ca9b9ff96
1 changed files with 5 additions and 1 deletions
|
@ -562,7 +562,11 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
# nickname can be nil because of virtual actors
|
||||
user_data =
|
||||
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
|
||||
Map.put(user_data, :nickname, nil)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue