Skip to content
Snippets Groups Projects
Commit 092b1b14 authored by vaartis's avatar vaartis
Browse files

Do not unfollow muted users

parent ad2cf4fd
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment