mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 13:52:58 +00:00
Propagate video tags into modal metadata updates
This commit is contained in:
1 parent
080e933477
commit
73d58e0981
2 files changed
+21
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user