git ssb

3+

ev / starboard



Commit 5e2078f340e24198d8ef7ae9bbfef22204a7ac0b

get should depend on render

Ev Bogue committed on 10/1/2017, 5:42:30 PM
Parent: 41fe72436c69f45b8fca124625e0dc96b5967852

Files changed

get.jschanged
get.jsView
@@ -1,28 +1,20 @@
11 var client = require('ssb-client')
22 var pull = require('pull-stream')
3-var chalk = require('chalk')
43 var avatar = require('ssb-avatar')
54 var paramap = require('pull-paramap')
5 +var render = require('./render')
66
77 client(function (err, sbot) {
88 getmessage = process.argv[2]
99
1010 sbot.whoami(function (err, me) {
1111 pull(
1212 sbot.get(getmessage, function (err, msg) {
13- console.log(msg)
1413 avatar(sbot, me.id, msg.author, function (err, avatar) {
15- msg.avatar = avatar;
16- msgRoot = ''
17- if (msg.content.root) {
18- msgRoot = 're: ' + msg.content.root
19- }
20- console.log(
21- chalk.dim(getmessage) + '\n' +
22- chalk.cyan(msg.avatar.name) + ' ' + chalk.yellow(msgRoot) + ' ' +
23- msg.content.text
24- )
14 + msg.avatar = avatar
15 + msg.value = msg
16 + render(msg)
2517 sbot.close()
2618 })
2719 })
2820 )

Built with git-ssb-web