diff options
author | Francis Dinh <normandy@firemail.cc> | 2018-05-17 23:53:34 -0400 |
---|---|---|
committer | Francis Dinh <normandy@firemail.cc> | 2018-05-17 23:53:34 -0400 |
commit | e6dc15b96cb971836211a1e57be1756936456c17 (patch) | |
tree | cc5310fb347c707257339eedb88ebdac79c2b42c /lib | |
parent | d8c842a7713ab2c9dd49bdabfad4f5a1b6120fcf (diff) | |
download | pleroma-e6dc15b96cb971836211a1e57be1756936456c17.tar.gz |
Undo formatting in user.ex
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/transmogrifier.ex | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index 0bec8c4dd..463d1e59d 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -241,24 +241,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do end end - def handle_incoming( - %{ - "type" => "Undo", - "object" => %{"type" => "Follow", "object" => followed}, - "actor" => follower, - "id" => id - } = data - ) do - with %User{local: true} = followed = User.get_cached_by_ap_id(followed), - %User{} = follower = User.get_or_fetch_by_ap_id(follower), - {:ok, activity} <- ActivityPub.unfollow(follower, followed, false) do - User.unfollow(follower, followed) - {:ok, activity} - else - e -> :error - end - end - # TODO # Accept # Undo for non-Announce |