run mix format
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 19 May 2018 08:37:04 +0000 (08:37 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 19 May 2018 08:37:04 +0000 (08:37 +0000)
lib/pleroma/user.ex
test/support/httpoison_mock.ex

index 399a66787dff4bf01128bd6a9492c5242aafb656..6a8129ac84b2572432d80e2cd77d76b27cbdcd6b 100644 (file)
@@ -404,18 +404,22 @@ defmodule Pleroma.User do
       from(
         u in User,
         select_merge: %{
-          search_distance: fragment(
-            "? <-> (? || ?)",
-            ^query,
-            u.nickname,
-            u.name
-          )}
+          search_distance:
+            fragment(
+              "? <-> (? || ?)",
+              ^query,
+              u.nickname,
+              u.name
+            )
+        }
       )
 
-    q = from(s in subquery(inner),
-      order_by: s.search_distance,
-      limit: 20
-    )
+    q =
+      from(
+        s in subquery(inner),
+        order_by: s.search_distance,
+        limit: 20
+      )
 
     Repo.all(q)
   end
index ad5171492db874f4fd023fc082412ab7cf800bc4..6bbae70e1f08f5bf34b592404ef85f182869c24c 100644 (file)
@@ -628,7 +628,11 @@ defmodule HTTPoisonMock do
      }}
   end
 
-  def get("https://hubzilla.example.org/channel/kaniini", [Accept: "application/activity+json"], _) do
+  def get(
+        "https://hubzilla.example.org/channel/kaniini",
+        [Accept: "application/activity+json"],
+        _
+      ) do
     {:ok,
      %Response{
        status_code: 200,