[#1304] Adjusted User.Info references from Notification.
This commit is contained in:
parent
8cc809e44e
commit
065e9fac12
@ -61,10 +61,10 @@ defmodule Pleroma.Notification do
|
|||||||
|
|
||||||
defp exclude_blocked(query, user) do
|
defp exclude_blocked(query, user) do
|
||||||
query
|
query
|
||||||
|> where([n, a], a.actor not in ^user.info.blocks)
|
|> where([n, a], a.actor not in ^user.blocks)
|
||||||
|> where(
|
|> where(
|
||||||
[n, a],
|
[n, a],
|
||||||
fragment("substring(? from '.*://([^/]*)')", a.actor) not in ^user.info.domain_blocks
|
fragment("substring(? from '.*://([^/]*)')", a.actor) not in ^user.domain_blocks
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user