git ssb

0+

Dominic / yap-patch



Commit 6e363b31bb003c462fcb03b5171f59598dedf0f4

render any message as a thread, to support broken aka forked threads

Dominic Tarr committed on 12/16/2019, 11:08:04 PM
Parent: 7a4602b4d8ba03a08fa8dc8623644a1673938ce4

Files changed

thread.jschanged
thread.jsView
@@ -51,11 +51,12 @@
5151 return cb(new Error('expected valid msg id as id'))
5252 sbot.get({id:opts.id, private: true}, function (err, msg) {
5353 if(err) return cb(err)
5454 var data = {key: opts.id, value: msg, timestamp: msg.timestamp || Date.now() }
55- if(data.value.content.root)
55 + /*if(data.value.content.root)
5656 cb(null, apply('message', data)) //just show one message
57- else if(data.value.content.type != 'post')
57 + else */
58 + if(data.value.content.type != 'post')
5859 cb(null, apply('message', data)) //just show one message
5960 else
6061 getThread(sbot, opts.id, function (err, ary) {
6162 var root = opts.id

Built with git-ssb-web