Misc refactoring / tweaks (ThreadMute.exists?/2).
This commit is contained in:
parent
6b793d3f83
commit
dfbc05d496
5 changed files with 14 additions and 13 deletions
|
|
@ -68,8 +68,8 @@ defmodule Pleroma.ThreadMute do
|
|||
|> Repo.delete_all()
|
||||
end
|
||||
|
||||
def check_muted(user_id, context) do
|
||||
def exists?(user_id, context) do
|
||||
query(user_id, context)
|
||||
|> Repo.all()
|
||||
|> Repo.exists?()
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue