From 33cce4bbcd9a90f506e3de0187f3c4e5b2ebf991 Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Wed, 29 Dec 2021 10:57:54 -0600 Subject: [PATCH] Update so that any edited streams without a date/time change still get the tag if needed. --- ui/redux/actions/publish.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/redux/actions/publish.js b/ui/redux/actions/publish.js index 1405f7a87..83519b24a 100644 --- a/ui/redux/actions/publish.js +++ b/ui/redux/actions/publish.js @@ -150,11 +150,6 @@ function resolvePublishPayload(publishData, myClaimForUri, myChannels, preview) 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 if (releaseTimeEdited) { publishPayload.release_time = releaseTimeEdited; @@ -166,6 +161,11 @@ function resolvePublishPayload(publishData, myClaimForUri, myChannels, preview) 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) { publishPayload.channel_id = channelId; }