projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add visibility check on quote (#178)
[akkoma]
/
lib
/
pleroma
/
thread_mute.ex
diff --git
a/lib/pleroma/thread_mute.ex
b/lib/pleroma/thread_mute.ex
index 5768e77111915df56e0942db89c3014bf36bc327..5d06cf030a31da27c5cfe884f8c5480c20d8b4ab 100644
(file)
--- a/
lib/pleroma/thread_mute.ex
+++ b/
lib/pleroma/thread_mute.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ThreadMute do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.ThreadMute do
@@
-68,8
+68,8
@@
defmodule Pleroma.ThreadMute do
|> Repo.delete_all()
end
|> Repo.delete_all()
end
- def
check_muted
(user_id, context) do
+ def
exists?
(user_id, context) do
query(user_id, context)
query(user_id, context)
- |> Repo.
all
()
+ |> Repo.
exists?
()
end
end
end
end