Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activitypub.Collection: is_ordered doesn't work for OrderedCollectionPage #290

Open
steve-bate opened this issue Aug 1, 2024 · 1 comment

Comments

@steve-bate
Copy link
Member

    def is_ordered(self):
        return 'OrderedCollection' == self._delegate.json_field('type') # <- May also be OrderedCollectionPage


    def items(self) -> Iterator[AnyObject]:
        items = self._delegate.json_field('orderedItems' if self.is_ordered() else 'items')
# ...
@jernst
Copy link
Member

jernst commented Oct 18, 2024

Code currently commented out, but leaving this here.

@jernst jernst removed this from the FediTest 0.6 released milestone Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants