Fix trim history
This commit is contained in:
parent
e80a81a2bb
commit
b13f56247f
@ -146,6 +146,17 @@ define([
|
|||||||
if (data.href) { data.href = base + data.href; }
|
if (data.href) { data.href = base + data.href; }
|
||||||
if (data.roHref) { data.roHref = base + data.roHref; }
|
if (data.roHref) { data.roHref = base + data.roHref; }
|
||||||
}), opts.href);
|
}), opts.href);
|
||||||
|
|
||||||
|
// If this is a file, don't try to look for metadata
|
||||||
|
if (opts.channel && opts.channel.length > 34) { return; }
|
||||||
|
common.getPadMetadata({
|
||||||
|
channel: opts.channel // optional, fallback to current pad
|
||||||
|
}, waitFor(function (obj) {
|
||||||
|
if (obj && obj.error) { return; }
|
||||||
|
data.owners = obj.owners;
|
||||||
|
data.expire = obj.expire;
|
||||||
|
data.pending_owners = obj.pending_owners;
|
||||||
|
}));
|
||||||
}).nThen(function () {
|
}).nThen(function () {
|
||||||
cb(void 0, data);
|
cb(void 0, data);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user