Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
092b1b14
Commit
092b1b14
authored
Sep 04, 2018
by
vaartis
Browse files
Do not unfollow muted users
parent
ad2cf4fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
092b1b14
...
...
@@ -889,10 +889,6 @@ def blocks_import(%User{} = blocker, blocked_identifiers) when is_list(blocked_i
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment