git ssb

2+

cel / scuttlebot.io



Tree: 254c89b83aef67583e5b1b6f6cd5fdba4fb0b493

Files: 254c89b83aef67583e5b1b6f6cd5fdba4fb0b493 / tmpl / docs / social / view-a-profile.md

745 bytesRaw

Get all 'about' messages

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

This query will get all of the 'about' messages that the user has published about themselves. If you want to get 'about' messages published by everyone, remove the source parameter.

About messages put their name & image attributes outside of the link, so we need links to fetch the full message-value. That's why values: true is set.

→ links API

Built with git-ssb-web