forked from mirrors/akkoma
Revert "Remove 'unlisted' handling for now."
This reverts commit 1027d1f696
.
This commit is contained in:
parent
1027d1f696
commit
c7a85de35c
2 changed files with 1 additions and 3 deletions
|
@ -233,8 +233,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
||||||
q = fetch_activities_query(["https://www.w3.org/ns/activitystreams#Public"], opts)
|
q = fetch_activities_query(["https://www.w3.org/ns/activitystreams#Public"], opts)
|
||||||
|
|
||||||
q
|
q
|
||||||
# Too slow
|
|> restrict_unlisted()
|
||||||
# |> restrict_unlisted()
|
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|> Enum.reverse()
|
|> Enum.reverse()
|
||||||
end
|
end
|
||||||
|
|
|
@ -171,7 +171,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "public fetch activities" do
|
describe "public fetch activities" do
|
||||||
@tag :skip
|
|
||||||
test "doesn't retrieve unlisted activities" do
|
test "doesn't retrieve unlisted activities" do
|
||||||
user = insert(:user)
|
user = insert(:user)
|
||||||
{:ok, unlisted_activity} = CommonAPI.post(user, %{"status" => "yeah", "visibility" => "unlisted"})
|
{:ok, unlisted_activity} = CommonAPI.post(user, %{"status" => "yeah", "visibility" => "unlisted"})
|
||||||
|
|
Loading…
Reference in a new issue