From bdb7152179dbef85fd2e53e79f7d781495c1e3ff Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 10 Nov 2024 22:39:38 +0100 Subject: [PATCH] fix: i was trying to be clever but .. matches page --- upub/core/src/traits/fetch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/core/src/traits/fetch.rs b/upub/core/src/traits/fetch.rs index 6615588..89a3a06 100644 --- a/upub/core/src/traits/fetch.rs +++ b/upub/core/src/traits/fetch.rs @@ -418,7 +418,7 @@ impl Fetcher for crate::Context { // fix for mastodon: at some point it introduces ?only_other_accounts=true and then returns a // collection, not a page anymore ??? - if matches!(page.object_type()?, apb::ObjectType::Collection(..)) { + if matches!(page.object_type()?, apb::ObjectType::Collection(apb::CollectionType::Collection)) { page = page.first().extract().ok_or(RequestError::Tombstone)?; }