[#1304] Adjusted User.Info references from Notification.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 23 Oct 2019 14:31:02 +0000 (17:31 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 23 Oct 2019 14:31:02 +0000 (17:31 +0300)
lib/pleroma/notification.ex

index 83844d3be4c58f78f81f17e6fc6e47a71af3ad1b..b7ecf51e4681fc9a25b8d1cd9d596c928f930bba 100644 (file)
@@ -61,10 +61,10 @@ defmodule Pleroma.Notification 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