projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
retry and retry_timeout settings default change
[akkoma]
/
lib
/
pleroma
/
filter.ex
diff --git
a/lib/pleroma/filter.ex
b/lib/pleroma/filter.ex
index bdc34698c13098c09d1cc31906819a6a53ded780..c8714158208fed5f715db7c8f227372ceb46e1ce 100644
(file)
--- a/
lib/pleroma/filter.ex
+++ b/
lib/pleroma/filter.ex
@@
-8,11
+8,11
@@
defmodule Pleroma.Filter do
import Ecto.Changeset
import Ecto.Query
import Ecto.Changeset
import Ecto.Query
- alias Pleroma.User
alias Pleroma.Repo
alias Pleroma.Repo
+ alias Pleroma.User
schema "filters" do
schema "filters" do
- belongs_to(:user, User, type:
Pleroma.FlakeId
)
+ belongs_to(:user, User, type:
FlakeId.Ecto.CompatType
)
field(:filter_id, :integer)
field(:hide, :boolean, default: false)
field(:whole_word, :boolean, default: true)
field(:filter_id, :integer)
field(:hide, :boolean, default: false)
field(:whole_word, :boolean, default: true)
@@
-38,7
+38,8
@@
defmodule Pleroma.Filter do
query =
from(
f in Pleroma.Filter,
query =
from(
f in Pleroma.Filter,
- where: f.user_id == ^user_id
+ where: f.user_id == ^user_id,
+ order_by: [desc: :id]
)
Repo.all(query)
)
Repo.all(query)