git ssb

2+

cel / scuttlebot.io



Tree: 254c89b83aef67583e5b1b6f6cd5fdba4fb0b493

Files: 254c89b83aef67583e5b1b6f6cd5fdba4fb0b493 / tmpl / docs / advanced / user-files.md

519 bytesRaw

Files referenced by a user

var pull = require('pull-stream')
pull(
  sbot.links({ source: userId, dest: '&' }),
  pull.collect(function (err, msgs) { ... })
)
sbot links --source {userId} --dest &

All IDs have a "sigil" character defining what type of object the ID references. (Blobs start with "&", users start with "@", and messages start with "%").

In links, you can use the sigil to filter the source or dest by the ID type.

→ links API

Built with git-ssb-web