Hide muted theads from home/public timelines unless with_muted is set
This commit is contained in:
parent
27b747546a
commit
a4a3e3becd
5 changed files with 60 additions and 10 deletions
|
|
@ -96,6 +96,7 @@ defmodule Pleroma.Activity do
|
|||
from([a] in query,
|
||||
left_join: tm in ThreadMute,
|
||||
on: tm.user_id == ^user.id and tm.context == fragment("?->>'context'", a.data),
|
||||
as: :thread_mute,
|
||||
select: %Activity{a | thread_muted?: not is_nil(tm.id)}
|
||||
)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue