Transmogrifier: Small readability changes.
authorlain <lain@soykaf.club>
Tue, 11 Aug 2020 12:02:09 +0000 (14:02 +0200)
committerlain <lain@soykaf.club>
Tue, 11 Aug 2020 12:02:09 +0000 (14:02 +0200)
lib/pleroma/web/activity_pub/transmogrifier.ex
test/web/activity_pub/transmogrifier/undo_handling_test.exs

index 2f04cc6ffb496fe4097508413892bbe58419ebd3..fe016e720b4594573659b5c948a12c035a1d96a7 100644 (file)
@@ -661,7 +661,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
       )
       when type in ~w{Update Block Follow} do
     with {:ok, %User{}} <- ObjectValidator.fetch_actor(data),
-         {:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do
+         {:ok, activity, _} <-
+           Pipeline.common_pipeline(data, local: false) do
       {:ok, activity}
     end
   end
@@ -670,7 +671,8 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
         %{"type" => "Delete"} = data,
         _options
       ) do
-    with {:ok, activity, _} <- Pipeline.common_pipeline(data, local: false) do
+    with {:ok, activity, _} <-
+           Pipeline.common_pipeline(data, local: false) do
       {:ok, activity}
     else
       {:error, {:validate_object, _}} = e ->
index 01dd6c37051fceda6e7dc4394a7b4a6559071bfe..8683f71354d60dd5eb68831c166616ca20102865 100644 (file)
@@ -130,7 +130,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier.UndoHandlingTest do
              "http://mastodon.example.org/users/admin/statuses/99542391527669785/activity"
   end
 
-  test "it works for incomming unfollows with an existing follow" do
+  test "it works for incoming unfollows with an existing follow" do
     user = insert(:user)
 
     follow_data =