Make sure we don't try to get metadata for blobs
This commit is contained in:
@@ -675,6 +675,8 @@ define([
|
||||
sem.take(function (give) {
|
||||
var otherOwners = false;
|
||||
nThen(function (_w) {
|
||||
// Don't check server metadata for blobs
|
||||
if (c.length !== 32) { return; }
|
||||
Store.anonRpcMsg(null, {
|
||||
msg: 'GET_METADATA',
|
||||
data: c
|
||||
@@ -1807,6 +1809,7 @@ define([
|
||||
var cb = Util.once(Util.mkAsync(_cb));
|
||||
|
||||
if (!data.channel) { return void cb({ error: 'ENOTFOUND'}); }
|
||||
if (!data.channel.length !== 32) { return void cb({ error: 'EINVAL'}); }
|
||||
store.anon_rpc.send('GET_METADATA', data.channel, function (err, obj) {
|
||||
if (err) { return void cb({error: err}); }
|
||||
var metadata = (obj && obj[0]) || {};
|
||||
|
||||
Reference in New Issue
Block a user