Merge branch 'develop' into 'develop'
[akkoma] / lib / pleroma / web / ostatus / handlers / follow_handler.ex
index f5db5582b89f4549c59a474d1775ed8275d37c03..162407e045ae0443aeadcd15738f6a001003a7fa 100644 (file)
@@ -6,7 +6,8 @@ defmodule Pleroma.Web.OStatus.FollowHandler do
   def handle(entry, doc) do
     with {:ok, actor} <- OStatus.find_make_or_update_user(doc),
          id when not is_nil(id) <- XML.string_from_xpath("/entry/id", entry),
-         followed_uri when not is_nil(followed_uri) <- XML.string_from_xpath("/entry/activity:object/id", entry),
+         followed_uri when not is_nil(followed_uri) <-
+           XML.string_from_xpath("/entry/activity:object/id", entry),
          {:ok, followed} <- OStatus.find_or_make_user(followed_uri),
          {:ok, activity} <- ActivityPub.follow(actor, followed, id, false) do
       User.follow(actor, followed)