Update so that any edited streams without a date/time change still get the tag if needed.
This commit is contained in:
parent
356c5bf30f
commit
33cce4bbcd
1 changed files with 5 additions and 5 deletions
|
@ -150,11 +150,6 @@ function resolvePublishPayload(publishData, myClaimForUri, myChannels, preview)
|
||||||
|
|
||||||
const nowTimeStamp = Number(Math.round(Date.now() / 1000));
|
const nowTimeStamp = Number(Math.round(Date.now() / 1000));
|
||||||
|
|
||||||
// Add internal tag if a livestream is being scheduled.
|
|
||||||
if (isLivestreamPublish && releaseTimeEdited && releaseTimeEdited > nowTimeStamp) {
|
|
||||||
publishPayload.tags.push(SCHEDULED_LIVESTREAM_TAG);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set release time to current date. On edits, keep original release/transaction time as release_time
|
// Set release time to current date. On edits, keep original release/transaction time as release_time
|
||||||
if (releaseTimeEdited) {
|
if (releaseTimeEdited) {
|
||||||
publishPayload.release_time = releaseTimeEdited;
|
publishPayload.release_time = releaseTimeEdited;
|
||||||
|
@ -166,6 +161,11 @@ function resolvePublishPayload(publishData, myClaimForUri, myChannels, preview)
|
||||||
publishPayload.release_time = nowTimeStamp;
|
publishPayload.release_time = nowTimeStamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add internal tag if a livestream is being scheduled.
|
||||||
|
if (isLivestreamPublish && publishPayload.release_time > nowTimeStamp) {
|
||||||
|
publishPayload.tags.push(SCHEDULED_LIVESTREAM_TAG);
|
||||||
|
}
|
||||||
|
|
||||||
if (channelId) {
|
if (channelId) {
|
||||||
publishPayload.channel_id = channelId;
|
publishPayload.channel_id = channelId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue