It's just too slow (over 1 second on small systems, haven't looked at
the queries in detail yet). We'll need some other way to handle it.
q = fetch_activities_query(["https://www.w3.org/ns/activitystreams#Public"], opts)
q
- |> restrict_unlisted()
+ # Too slow
+ # |> restrict_unlisted()
|> Repo.all()
|> Enum.reverse()
end
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"})