git ssb

2+

cel / scuttlebot.io



Tree: b943b01f452dcc8c932c81886d0346f7a38269e4

Files: b943b01f452dcc8c932c81886d0346f7a38269e4 / tmpl / docs / social / follow-users.md

1232 bytesRaw

To stay in sync with somebody, you follow their feed. Scuttlebot will search the network for new messages by your followed users.

Following is controlled by Contact messages that are published on your feed.

Follow users

sbot.publish({
  type: 'contact',
  contact: userId,
  following: true 
}, cb)
sbot publish --type contact --contact {userId} --following

Example usage (don't copy this directly):

sbot.publish({
  type: 'contact',
  contact: '@hxGxqPrplLjRG2vtjQL87abX4QKqeLgCwQpS730nNwE=.ed25519',
  following: true 
}, cb)
sbot publish \
  --type contact \
  --contact "@hxGxqPrplLjRG2vtjQL87abX4QKqeLgCwQpS730nNwE=.ed25519" \
  --following

Unfollow users

sbot.publish({
  type: 'contact',
  contact: userId,
  following: false
}, cb)
sbot publish --type contact --contact {userId} --no-following

Example usage (don't copy this directly):

sbot.publish({
  type: 'contact',
  contact: '@hxGxqPrplLjRG2vtjQL87abX4QKqeLgCwQpS730nNwE=.ed25519',
  following: false 
}, cb)
sbot publish \
  --type contact \
  --contact "@hxGxqPrplLjRG2vtjQL87abX4QKqeLgCwQpS730nNwE=.ed25519" \
  --no-following

Built with git-ssb-web