No, that's for target property. Here's an example of Add.target from Streams:
"target": { "id": "https://streams.lndo.site/conversation/ed4775f8-18ee-46a5-821e-b2ed2dc546e8", "type": "Collection", "attributedTo": "https://streams.lndo.site/channel/red" },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
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.