mirror of
https://github.com/jtomchak/akkoma.git
synced 2025-01-31 11:59:10 +01:00
Do not unfollow muted users
This commit is contained in:
parent
ad2cf4fd86
commit
092b1b1453
1 changed files with 0 additions and 4 deletions
|
@ -889,10 +889,6 @@ defmodule Pleroma.User do
|
||||||
end
|
end
|
||||||
|
|
||||||
def mute(muter, %User{ap_id: ap_id} = muted) do
|
def mute(muter, %User{ap_id: ap_id} = muted) do
|
||||||
if following?(muter, muter) do
|
|
||||||
unfollow(muter, muter)
|
|
||||||
end
|
|
||||||
|
|
||||||
mutes = muter.info["mutes"] || []
|
mutes = muter.info["mutes"] || []
|
||||||
new_mutes = Enum.uniq([ap_id | mutes])
|
new_mutes = Enum.uniq([ap_id | mutes])
|
||||||
new_info = Map.put(muter.info, "mutes", new_mutes)
|
new_info = Map.put(muter.info, "mutes", new_mutes)
|
||||||
|
|
Loading…
Reference in a new issue