aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/app.js b/lib/app.js
index ac275a4..73b313d 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -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) {