Commit 6e363b31bb003c462fcb03b5171f59598dedf0f4
render any message as a thread, to support broken aka forked threads
Dominic Tarr committed on 12/16/2019, 11:08:04 PMParent: 7a4602b4d8ba03a08fa8dc8623644a1673938ce4
Files changed
thread.js | changed |
thread.js | |||
---|---|---|---|
@@ -51,11 +51,12 @@ | |||
51 | 51 … | return cb(new Error('expected valid msg id as id')) | |
52 | 52 … | sbot.get({id:opts.id, private: true}, function (err, msg) { | |
53 | 53 … | if(err) return cb(err) | |
54 | 54 … | var data = {key: opts.id, value: msg, timestamp: msg.timestamp || Date.now() } | |
55 | - if(data.value.content.root) | ||
55 … | + /*if(data.value.content.root) | ||
56 | 56 … | 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') | ||
58 | 59 … | cb(null, apply('message', data)) //just show one message | |
59 | 60 … | else | |
60 | 61 … | getThread(sbot, opts.id, function (err, ary) { | |
61 | 62 … | var root = opts.id |
Built with git-ssb-web