diff options
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1135,6 +1135,17 @@ App.prototype.getThread = function (msg) { ]) } +App.prototype.getLinks = function (id) { + return this.sbot.backlinks ? this.sbot.backlinks.read({ + query: [ + {$filter: {dest: id}} + ] + }) : this.sbotLinks({ + dest: id, + values: true + }) +} + App.prototype.getShard = function (id, cb) { var self = this this.getMsgDecrypted(id, function (err, msg) { |