projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return profile URL when available instead of actor URI for MastodonAPI mention URL
[akkoma]
/
lib
/
pleroma
/
filter.ex
diff --git
a/lib/pleroma/filter.ex
b/lib/pleroma/filter.ex
index bdc34698c13098c09d1cc31906819a6a53ded780..90457dadf8641f9c100aa067ba8678dc0ef55c60 100644
(file)
--- a/
lib/pleroma/filter.ex
+++ b/
lib/pleroma/filter.ex
@@
-8,8
+8,8
@@
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
belongs_to(:user, User, type: Pleroma.FlakeId)
schema "filters" do
belongs_to(:user, User, type: Pleroma.FlakeId)
@@
-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)