aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-23 13:00:07 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-23 13:30:56 -1000
commit54db98a9cf71d5f79379ab83c12474a688f0d5ae (patch)
treea55199f949e51a7db2817b490844e13efe95f99f /lib/app.js
parent0ba75f061e35ca3b04aaf7e911bbcb089b473c2a (diff)
downloadpatchfoo-54db98a9cf71d5f79379ab83c12474a688f0d5ae.tar.gz
patchfoo-54db98a9cf71d5f79379ab83c12474a688f0d5ae.zip
Add about-diff page
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) {