Commit b614cb87e82036808f31e0940b9a67f609212fe4
Add "mention attendees" option for replies to gatherings
cel committed on 12/8/2019, 2:50:23 AMParent: 0ea52b9a188055c1bcf1e256c07251dfdc274a45
Files changed
lib/app.js | changed |
lib/serve.js | changed |
lib/app.js | |||
---|---|---|---|
@@ -1333,8 +1333,28 @@ | |||
1333 | 1333 … | values: true | |
1334 | 1334 … | }) | |
1335 | 1335 … | } | |
1336 | 1336 … | ||
1337 … | +App.prototype.getLinks2 = function (id, relOrType) { | ||
1338 … | + return this.sbot.backlinks ? this.sbot.backlinks.read({ | ||
1339 … | + query: [ | ||
1340 … | + {$filter: { | ||
1341 … | + dest: id, | ||
1342 … | + value: { | ||
1343 … | + content: { | ||
1344 … | + type: relOrType | ||
1345 … | + } | ||
1346 … | + } | ||
1347 … | + }} | ||
1348 … | + ] | ||
1349 … | + }) : this.sbotLinks({ | ||
1350 … | + dest: id, | ||
1351 … | + meta: false, | ||
1352 … | + values: true, | ||
1353 … | + rel: relOrType | ||
1354 … | + }) | ||
1355 … | +} | ||
1356 … | + | ||
1337 | 1357 … | App.prototype.getShard = function (id, cb) { | |
1338 | 1358 … | var self = this | |
1339 | 1359 … | this.getMsgDecrypted(id, function (err, msg) { | |
1340 | 1360 … | if (err) return cb(new Error('Unable to get shard message: ' + err.stack)) |
lib/serve.js | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 137484 bytes New file size: 139761 bytes |
Built with git-ssb-web