From c7a85de35c3ef8cfca447ffdb85cd929258642df Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 13 May 2018 12:38:13 +0200 Subject: [PATCH] Revert "Remove 'unlisted' handling for now." This reverts commit 1027d1f6963b495a5abc67b05447619ce7d429db. --- lib/pleroma/web/activity_pub/activity_pub.ex | 3 +-- test/web/activity_pub/activity_pub_test.exs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 4bd56d123..491ad3705 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -233,8 +233,7 @@ def fetch_public_activities(opts \\ %{}) do q = fetch_activities_query(["https://www.w3.org/ns/activitystreams#Public"], opts) q - # Too slow - # |> restrict_unlisted() + |> restrict_unlisted() |> Repo.all() |> Enum.reverse() end diff --git a/test/web/activity_pub/activity_pub_test.exs b/test/web/activity_pub/activity_pub_test.exs index c4b59f5c7..a39ba9adb 100644 --- a/test/web/activity_pub/activity_pub_test.exs +++ b/test/web/activity_pub/activity_pub_test.exs @@ -171,7 +171,6 @@ test "doesn't return blocked activities" do end describe "public fetch activities" do - @tag :skip test "doesn't retrieve unlisted activities" do user = insert(:user) {:ok, unlisted_activity} = CommonAPI.post(user, %{"status" => "yeah", "visibility" => "unlisted"})