summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2023-07-02 11:03:09 -0400
committertusooa <tusooa@kazv.moe>2023-07-02 11:03:09 -0400
commita1621839cc31a92e346cbd6065c4db6a8ebeb5a9 (patch)
tree03b428c11928f96b65ed55be94473193cb07fbbe /test
parent48e490cd585dd20922a667ef8573ce52154adeea (diff)
downloadpleroma-a1621839cc31a92e346cbd6065c4db6a8ebeb5a9.tar.gz
pleroma-a1621839cc31a92e346cbd6065c4db6a8ebeb5a9.zip
Fix user fetch completely broken if featured collection is not in a supported form
Diffstat (limited to 'test')
-rw-r--r--test/pleroma/web/activity_pub/activity_pub_test.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pleroma/web/activity_pub/activity_pub_test.exs b/test/pleroma/web/activity_pub/activity_pub_test.exs
index 54fc6ef0a..1e8c14043 100644
--- a/test/pleroma/web/activity_pub/activity_pub_test.exs
+++ b/test/pleroma/web/activity_pub/activity_pub_test.exs
@@ -2652,4 +2652,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubTest do
{:ok, user} = ActivityPub.make_user_from_ap_id("https://princess.cat/users/mewmew")
assert user.name == " "
end
+
+ test "pin_data_from_featured_collection will ignore unsupported values" do
+ assert %{} ==
+ ActivityPub.pin_data_from_featured_collection(%{
+ "type" => "OrderedCollection",
+ "first" => "https://social.example/users/alice/collections/featured?page=true"
+ })
+ end
end