aboutsummaryrefslogtreecommitdiff
path: root/lib/app.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-05 12:11:57 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-12-07 16:50:23 -1000
commitb614cb87e82036808f31e0940b9a67f609212fe4 (patch)
treec7b5109e2337c8c13d42aec2fe8ddccad1c7939c /lib/app.js
parent0ea52b9a188055c1bcf1e256c07251dfdc274a45 (diff)
downloadpatchfoo-b614cb87e82036808f31e0940b9a67f609212fe4.tar.gz
patchfoo-b614cb87e82036808f31e0940b9a67f609212fe4.zip
Add "mention attendees" option for replies to gatherings
Diffstat (limited to 'lib/app.js')
-rw-r--r--lib/app.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/app.js b/lib/app.js
index 9cc80e4..0eb576e 100644
--- a/lib/app.js
+++ b/lib/app.js
@@ -1334,6 +1334,26 @@ App.prototype.getLinks = function (id) {
})
}
+App.prototype.getLinks2 = function (id, relOrType) {
+ return this.sbot.backlinks ? this.sbot.backlinks.read({
+ query: [
+ {$filter: {
+ dest: id,
+ value: {
+ content: {
+ type: relOrType
+ }
+ }
+ }}
+ ]
+ }) : this.sbotLinks({
+ dest: id,
+ meta: false,
+ values: true,
+ rel: relOrType
+ })
+}
+
App.prototype.getShard = function (id, cb) {
var self = this
this.getMsgDecrypted(id, function (err, msg) {