Open Powersource opened 2 years ago
And yeah I get that the tag is what's described in https://github.com/ssbc/ssb-buttwoo-spec#metadata
Yeah tag is required. It would be good if this repo had at least an example of how to use it in ssb-db2 ;-)
It's not really super clear that it should be an int: https://github.com/ssbc/ssb-buttwoo/blob/master/format.js#L91
Also the enum is exported, so you can use tag: butt2.tags.SSB_FEED
for improved readability.
Could it default to SSB_FEED? And could it be called something like messageType instead?
I guess it would be good with a default. Can you make a PR for that?
Maybe we can call it just type? It is just also quite generic. Hmm
Tried to use SSB_FEED but got
TypeError: Cannot read properties of undefined (reading 'SSB_FEED')
Does this comment have something to do with that?
I was getting an error about
tag
missing as an opt, when I added that it seems to have fixed things. So now I havea bit verbose (and also confusing, what's a tag)?