make linter happy
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Mon, 6 Dec 2021 11:50:51 +0000 (11:50 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 12 Dec 2021 17:35:02 +0000 (17:35 +0000)
lib/pleroma/activity.ex
test/pleroma/web/activity_pub/activity_pub_test.exs

index c84e96aa2bcdb89c5eebee5fae96a07394bd6bed..4106feef6d5baac44bc62c422ad4d3df2d6e2980 100644 (file)
@@ -362,8 +362,7 @@ defmodule Pleroma.Activity do
   end
 
   def restrict_deactivated_users(query) do
-    deactivated_users_query =
-      from(u in User.Query.build(%{deactivated: true}), select: u.ap_id)
+    deactivated_users_query = from(u in User.Query.build(%{deactivated: true}), select: u.ap_id)
 
     from(activity in query, where: activity.actor not in subquery(deactivated_users_query))
   end
index b57e872470f110d6c8ddaf61dccf80e0cc199fb5..574ef0d7155da69623db2c7488495e5735a87e4a 100644 (file)
@@ -783,14 +783,13 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
     {:ok, activity_one} = CommonAPI.post(deactivated, %{status: "hey!"})
     {:ok, activity_two} = CommonAPI.post(active, %{status: "yay!"})
     {:ok, _updated_user} = User.set_activation(deactivated, false)
-  
+
     activities = ActivityPub.fetch_activities([], %{})
-  
+
     refute Enum.member?(activities, activity_one)
     assert Enum.member?(activities, activity_two)
   end
 
-
   test "always see your own posts even when they address people you block" do
     user = insert(:user)
     blockee = insert(:user)