ssbc / ssb-uri2

Utilities for recognizing and converting SSB URIs
GNU Lesser General Public License v3.0
10 stars 3 forks source link

Add isMessageSSBURI #14

Closed Powersource closed 2 years ago

Powersource commented 2 years ago

Like isMsg from ssb-ref https://github.com/ssbc/ssb-ref#isfeedstring-ismsgstring-iscloakedmsgstring-isblobstring

The difference between this function and the other similar ones (e.g. isClassicMessageSSBURI) would be that this one doesn't care what feed format is used

Powersource commented 2 years ago

Motivation is that in https://github.com/ssbc/ssb-tribes2/pull/12 I'm getting an error from ssb-keyring that it doesn't recognise a buttwoo link to a group when it's checked with isMsg. But I don't want to use the buttwoo specific function, I want keyring to stay more general.