run mix format
authorWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 08:26:36 +0000 (08:26 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 6 Aug 2018 08:26:36 +0000 (08:26 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index bab272323f47e749c9b098800e775432c7f541f5..a07bf162994bf465394c7ef9a969e3f52693e815 100644 (file)
@@ -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