Merge branch 'features/validators-video' into 'develop'
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index 3ab0457375a333a554ebe644abf458372ec7c872..f5cbb3e01922ad91568fd940a220dc0112ad1525 100644 (file)
@@ -767,7 +767,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   end
 
   defp restrict_replies(query, %{
-         reply_filtering_user: user,
+         reply_filtering_user: %User{} = user,
          reply_visibility: "self"
        }) do
     from(
@@ -783,7 +783,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   end
 
   defp restrict_replies(query, %{
-         reply_filtering_user: user,
+         reply_filtering_user: %User{} = user,
          reply_visibility: "following"
        }) do
     from(