activitypub: fix restrict_blocked()
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 20 Nov 2018 18:58:08 +0000 (18:58 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 20 Nov 2018 18:58:08 +0000 (18:58 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index 54ca891b9d27a8a24f46cf159423b13f322887da..47836ae13f83df85beb12cba3a008ecaac4fb225 100644 (file)
@@ -509,8 +509,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   end
 
   defp restrict_blocked(query, %{"blocking_user" => %User{info: info}}) do
-    blocks = info["blocks"] || []
-    domain_blocks = info["domain_blocks"] || []
+    blocks = info.blocks || []
+    domain_blocks = info.domain_blocks || []
 
     from(
       activity in query,