mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 01:12:39 +00:00
fixed bug when editing older videos without the needed fields
This commit is contained in:
1 parent
5a771c15f3
commit
d54f07850e
1 file changed
+2
-2
+2
-2
@@ -47,8 +47,8 @@ function convertEventToVideo(event) {
|
||||
const content = JSON.parse(event.content || "{}");
|
||||
return {
|
||||
id: event.id,
|
||||
// We store a 'videoRootId' in content so we can group multiple edits
|
||||
videoRootId: content.videoRootId || null,
|
||||
// If content.videoRootId is missing, use event.id as a fallback
|
||||
videoRootId: content.videoRootId || event.id,
|
||||
version: content.version ?? 1,
|
||||
isPrivate: content.isPrivate ?? false,
|
||||
title: content.title || "",
|
||||
|
||||
Reference in new issue
Block a user