Skip to content

Commit

Permalink
Don't add c:scheduled-livestream tag to scheduled file/post uploads (
Browse files Browse the repository at this point in the history
…#3038)

Co-authored-by: miko <[email protected]>
  • Loading branch information
keikari and miko authored Jan 11, 2024
1 parent 88210c3 commit a030230
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/util/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,11 @@ const PAYLOAD = {
},

scheduledLivestream: (tagSet: Set<string>, publishData: UpdatePublishState, releaseTime, nowTime) => {
const { liveCreateType, liveEditType } = publishData;
const { type, liveCreateType, liveEditType } = publishData;
const isPlaceholderClaim =
liveCreateType === 'new_placeholder' ||
(liveCreateType === 'edit_placeholder' && liveEditType === 'update_only');
type === 'livestream' &&
(liveCreateType === 'new_placeholder' ||
(liveCreateType === 'edit_placeholder' && liveEditType === 'update_only'));

if (isPlaceholderClaim && releaseTime && releaseTime > nowTime) {
// Add internal scheduled tag if claim is a livestream and is being scheduled in the future.
Expand Down

0 comments on commit a030230

Please sign in to comment.