Name: ssb-backlinks
Owner: Secure Scuttlebutt Consortium
Description: scuttlebot plugin for indexing all link mentions of messages
Created: 2017-06-12 01:30:33.0
Updated: 2018-05-07 11:43:58.0
Pushed: 2018-05-02 20:37:00.0
Homepage: null
Size: 20
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
scuttlebot plugin for indexing all link mentions of messages (including private for the current identity).
Walks all values of a message searching for ssb-ref recognized keys. Provides an ssb-query style interface.
t pull = require('pull-stream')
tion createBacklinkStream (id) {
r filterQuery = {
$filter: {
dest: id
}
turn sbot.backlinks.read({
query: [filterQuery],
index: 'DTA', // use asserted timestamps
live: true
t msgKey = '%+zYA9WF9cY+HqGLzqS1H7FdUdK45tUmTqiZ85p+RNOQ=.sha256'
relatedMessages = []
(
eateBacklinkStream(msgKey),
ll.filter(msg => !msg.sync),
// note the 'live' style streams emit { sync: true } when they're up to date!
ll.drain(msg => {
relatedMessages.push(msg)
Please note that 0.7.0 requires scuttlebot 11.3
MIT