Do not return tuple when unneeded
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index e1e90d667f2d36262834d00930638cdf672cb691..1cf8b61516b7d82522940fcb232ba43ddb2dc341 100644 (file)
@@ -520,9 +520,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   end
 
   def fetch_public_activities(opts \\ %{}) do
-    q = fetch_activities_query([Pleroma.Constants.as_public()], opts)
+    opts = Map.drop(opts, ["user"])
 
-    q
+    [Pleroma.Constants.as_public()]
+    |> fetch_activities_query(opts)
     |> restrict_unlisted()
     |> Pagination.fetch_paginated(opts)
     |> Enum.reverse()