blobs.has

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4051 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-11-17 01:49:34 +00:00
parent be6f24b3ee
commit 880ab7fdde
4 changed files with 41 additions and 11 deletions

View File

@ -194,17 +194,6 @@ ssb.addRpc(['blobs', 'createWants'], function(request) {
requestMoreBlobs(request);
});
ssb.addRpc(['blobs', 'has'], function(request) {
var found = false;
ssb.sqlStream(
'SELECT 1 FROM blobs where id = ?1',
[request.args[0]],
function(row) {
found = true;
});
request.send_json(found);
});
ssb.addRpc(['tunnel', 'isRoom'], function(request) {
request.send_json({"name": "tilde friends tunnel", "membership": false, "features": ["tunnel", "room1"]});
});