stupid pending publish hacks
This commit is contained in:
parent
429ca37e55
commit
df286da300
2 changed files with 3 additions and 3 deletions
|
@ -48,10 +48,10 @@ function savePendingPublish({ name, channel_name }) {
|
|||
const newPendingPublish = {
|
||||
name,
|
||||
channel_name,
|
||||
claim_id: "pending_claim_" + uri,
|
||||
claim_id: "pending-" + uri,
|
||||
txid: "pending_" + uri,
|
||||
nout: 0,
|
||||
outpoint: "pending_" + uri + ":0",
|
||||
outpoint: "pending-" + uri + ":0",
|
||||
time: Date.now(),
|
||||
};
|
||||
setLocal("pendingPublishes", [...pendingPublishes, newPendingPublish]);
|
||||
|
|
|
@ -100,7 +100,7 @@ lbryuri.parse = function(uri, requireProto = false) {
|
|||
if (
|
||||
claimId &&
|
||||
(claimId.length > CLAIM_ID_MAX_LEN || !claimId.match(/^[0-9a-f]+$/)) &&
|
||||
!claimId.match(/^pending_/) //ought to be dropped when savePendingPublish drops hack
|
||||
!claimId.match(/^pending/) //ought to be dropped when savePendingPublish drops hack
|
||||
) {
|
||||
throw new Error(__(`Invalid claim ID %s.`, claimId));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue