Files: 3ed513c33a63c4dec6c04e26770a621df61cc360 / 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.
Built with git-ssb-web