projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for `account_id` param to filter notifications by the account
[akkoma]
/
lib
/
pleroma
/
thread_mute.ex
diff --git
a/lib/pleroma/thread_mute.ex
b/lib/pleroma/thread_mute.ex
index 10d31679daa17d77ad9c086f5cb8deb6a08d8582..65cbbede3f2ee05fafe7ee406aee87cf1dee2560 100644
(file)
--- a/
lib/pleroma/thread_mute.ex
+++ b/
lib/pleroma/thread_mute.ex
@@
-12,7
+12,7
@@
defmodule Pleroma.ThreadMute do
require Ecto.Query
schema "thread_mutes" do
require Ecto.Query
schema "thread_mutes" do
- belongs_to(:user, User, type:
Pleroma.FlakeId
)
+ belongs_to(:user, User, type:
FlakeId.Ecto.CompatType
)
field(:context, :string)
end
field(:context, :string)
end
@@
-24,7
+24,7
@@
defmodule Pleroma.ThreadMute do
end
def query(user_id, context) do
end
def query(user_id, context) do
-
user_id = Pleroma.FlakeId.from_string
(user_id)
+
{:ok, user_id} = FlakeId.Ecto.CompatType.dump
(user_id)
ThreadMute
|> Ecto.Query.where(user_id: ^user_id)
ThreadMute
|> Ecto.Query.where(user_id: ^user_id)