forked from cory/tildefriends
blobs.has
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4051 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
11
core/ssb.js
11
core/ssb.js
@ -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"]});
|
||||
});
|
||||
|
Reference in New Issue
Block a user