projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
User: Remote users don't need to be confirmed or approved
[akkoma]
/
lib
/
pleroma
/
filter.ex
diff --git
a/lib/pleroma/filter.ex
b/lib/pleroma/filter.ex
index 91884c6b38b17de25374320db52e001f612a4eb4..5d6df95306ef768256b10f3585bfe3074199f745 100644
(file)
--- a/
lib/pleroma/filter.ex
+++ b/
lib/pleroma/filter.ex
@@
-42,7
+42,7
@@
defmodule Pleroma.Filter do
from(f in query, where: f.hide)
end
from(f in query, where: f.hide)
end
- def get_
by_user(query, %User{id: user_id} = _user
) do
+ def get_
filters(query \\ __MODULE__, %User{id: user_id}
) do
query =
from(
f in query,
query =
from(
f in query,
@@
-110,7
+110,7
@@
defmodule Pleroma.Filter do
__MODULE__
|> get_active()
|> get_irreversible()
__MODULE__
|> get_active()
|> get_irreversible()
- |> get_
by_user
(user)
+ |> get_
filters
(user)
|> compose_regex(format)
end
|> compose_regex(format)
end