Propagate video tags into modal metadata updates

This commit is contained in:
thePR0M3TH3AN committed 2025-10-23 13:31:30 -04:00
1 parent 080e933477
commit 73d58e0981
2 files changed
+21 -2

No files matched your search

+5 -1
View File
@@ -1,3 +1,5 @@
import { collectVideoTags } from "./videoTags.js";
export function getVideoRootIdentifier(video) {
if (!video || typeof video !== "object") {
return "";
@@ -79,6 +81,8 @@ export function syncActiveVideoRootTimestamp({
}
activeVideo.rootCreatedAt = normalized;
const modalTags = collectVideoTags(activeVideo);
activeVideo.displayTags = modalTags;
const editedAt = Number.isFinite(activeVideo.lastEditedAt)
? Math.floor(activeVideo.lastEditedAt)
@@ -95,7 +99,7 @@ export function syncActiveVideoRootTimestamp({
postedAt: normalized,
editedAt,
});
videoModal.updateMetadata({ timestamps: payload });
videoModal.updateMetadata({ timestamps: payload, tags: modalTags });
}
return true;