From: Ekaterina Vaartis Date: Mon, 3 Sep 2018 21:17:25 +0000 (+0300) Subject: Do not unfollow muted users X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=092b1b145335d530d7343116eb452e37cc112a9e;p=akkoma Do not unfollow muted users --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 9a774e7b7..da25a91c8 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -889,10 +889,6 @@ defmodule Pleroma.User do end def mute(muter, %User{ap_id: ap_id} = muted) do - if following?(muter, muter) do - unfollow(muter, muter) - end - mutes = muter.info["mutes"] || [] new_mutes = Enum.uniq([ap_id | mutes]) new_info = Map.put(muter.info, "mutes", new_mutes)