@julian @evan @jenniferplusplus @mikedev @erincandescent @evan @trwnh
>7888/171b use context whereas 76ea uses a new property thr:thread
I think context
is good enough. Streams and NodeBB already provide this collection and Mitra will too.
>171b specifies a new object type Context
It is for easier identification of conversation-Add activities. My server may receive many different kinds of Add activities, and it would be nice to have some indication of what collection is being modified.
This is just an idea though. Streams uses Collection
type
>Collection items:
My use case requires items to be activities, but I can support both variants of context
collection. Conversation activities can be also put into a different collection.
@julian
No, that's for
target
property. Here's an example ofAdd.target
from Streams:In my code I have a handler for
Add
activity, which then sends activity to one of the other handlers:- Add{target: featured}
- Add{target: subscribers}
- Add{target: context}
Currently I use heuristics to determine which one to use. But with
Add.target.type == <meaningful type name>
the code would be simpler and less fragile.Do you have something like that in NodeBB? I wonder how others solve this "routing" problem