diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-05 12:11:57 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-12-07 16:50:23 -1000 |
commit | b614cb87e82036808f31e0940b9a67f609212fe4 (patch) | |
tree | c7b5109e2337c8c13d42aec2fe8ddccad1c7939c /lib/app.js | |
parent | 0ea52b9a188055c1bcf1e256c07251dfdc274a45 (diff) | |
download | patchfoo-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.js | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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) { |