ssbc / ssb-ref

check if a string is a valid ssb-reference
MIT License
14 stars 10 forks source link

Adapt functions to also accept ssb URIs? #46

Closed Powersource closed 1 year ago

Powersource commented 1 year ago

I want it in tribes2 because the new msgIds and feedIds I get from using buttwoo breaks things far down the callstack when eventually an ID is passed to ssb-ref. https://github.com/ssbc/ssb-tribes2/pull/12

This would probably be a pretty breaking change though right? Or maybe not directly breaking a lot of stuff, but if someone puts URIs into metadata for classic main feed messages then old clients won't know what to do.

A bit confused what to do here. Just make a new library?

Ah wait now I found https://github.com/ssbc/ssb-uri2 which might be what I'm looking for. I'll close this lol