Closed aschrijver closed 5 months ago
i think id
is probably your best bet, and I don't see any conflict with "should be filtered by client permissions"—that's just saying "don't show clients activities they don't have access to"
Thanks @nightpool
I'll strongly consider id
(maybe in combination with another option, if that works better for e.g. UI representation in a client)
IMO "There is no best way, choose whatever suits you"
I just commented on the similar issue on sorting, so I'll link it here.
https://github.com/w3c/activitystreams/issues/484#issuecomment-1812959870
tl;dr is to use FEP 5bf0, possibly with multiple types.
I am fine with closing this issue and its related one, with that reference to the FEP as the outcome. Thank you @evanp
Please Indicate One:
Please Describe the Issue:
When a (Ordered)Collection is returned by an API call, it will oftentimes be the result of a query, and only contain a filtered subset of the full collection, e.g. 'give me all items filtered by Object type' or 'give me all items published between X and Y date', etc.
My question: If I want to convey to the client what filter query was used to obtain the collection, what would be the best practice?
Some options:
id
property should be the indicator, so you can dereference the filtered collection reliablyinbox
andoutbox
in ActivityPub that should be filtered by client permissions, and this is not reflected in theid
(or anywhere else in the json).object
property indicates the filter, like a specialtag
, or thegenerator
propertyrel
property could be an indicator of the filter