[#1304] Adjusted User.Info references from Notification.

This commit is contained in:
Ivan Tashkinov 2019-10-23 17:31:02 +03:00
parent 8cc809e44e
commit 065e9fac12

View file

@ -61,10 +61,10 @@ def for_user_query(user, opts \\ []) do
defp exclude_blocked(query, user) do
query
|> where([n, a], a.actor not in ^user.info.blocks)
|> where([n, a], a.actor not in ^user.blocks)
|> where(
[n, a],
fragment("substring(? from '.*://([^/]*)')", a.actor) not in ^user.info.domain_blocks
fragment("substring(? from '.*://([^/]*)')", a.actor) not in ^user.domain_blocks
)
end