projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad2cf4f
)
Do not unfollow muted users
author
Ekaterina Vaartis
<vaartis@cock.li>
Mon, 3 Sep 2018 21:17:25 +0000
(
00:17
+0300)
committer
Ekaterina Vaartis
<vaartis@cock.li>
Tue, 19 Feb 2019 18:49:55 +0000
(21:49 +0300)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 9a774e7b7da9e793ab16ce44c7216c1cfb00026c..da25a91c8d08f5457519c102dc47de63336f25a6 100644
(file)
--- 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)