arj03 / ssb-browser-demo

A secure scuttlebutt client interface running in the browser
Other
58 stars 11 forks source link

Add support for blog-type messages #247

Closed KyleMaas closed 3 years ago

KyleMaas commented 3 years ago

Adds support for "blog" messages. Theoretically, they should be UTF-16, but in reality when I tried decoding existing messages as UTF-16, it came out as garbage. So this decodes them as UTF-8, which is how most of the messages I found were actually encoded.

Fixes #223.

arj03 commented 3 years ago

Was looking at this 2 times because I didn't think it was this easy. Nice one :-)

KyleMaas commented 3 years ago

Yeah. I think it wouldn't be a bad idea, at some point, to add the ability to let users choose to post as a blog post instead if their post is too long rather than just erroring out. But that's a pretty low priority. Probably ought to file an issue for that so I don't forget, though.