1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-27 21:05:10 +01:00

Use correct variable names in unfollow

This commit is contained in:
Francis Dinh 2018-05-19 20:57:37 -04:00
parent 0ec1abb3b6
commit da9744eb84

View File

@ -270,7 +270,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
with %User{local: true} = blocked = User.get_cached_by_ap_id(blocked),
%User{} = blocker = User.get_or_fetch_by_ap_id(blocker),
{:ok, activity} <- ActivityPub.block(blocker, blocked, false) do
User.unfollow(follower, followed)
User.unfollow(blocker, blocked)
User.block(blocker, blocked.ap_id)
{:ok, activity}
else