fix: i was trying to be clever but .. matches page

This commit is contained in:
əlemi 2024-11-10 22:39:38 +01:00
parent 0a938ca14e
commit bdb7152179
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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 // fix for mastodon: at some point it introduces ?only_other_accounts=true and then returns a
// collection, not a page anymore ??? // 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)?; page = page.first().extract().ok_or(RequestError::Tombstone)?;
} }