git ssb

2+

cel / scuttlebot.io



Tree: 8231016cf1abf0fb60c43b11d9ef9dbe69d6e5c0

Files: 8231016cf1abf0fb60c43b11d9ef9dbe69d6e5c0 / tmpl / docs / advanced / votes-on-a-message.md

515 bytesRaw

Votes on a message

var pull = require('pull-stream')
pull(
  sbot.links({ dest: messageId, rel: 'vote' }),
  pull.collect(function (err, msgs) { ... })
)
sbot links --dest {messageId} --rel vote --values

Vote messages put the value and reason data in the link, so we'll get those attributes in the output of links without including the full message value. That's why values: true is not set.

→ links API

Built with git-ssb-web