mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2025-09-08 06:58:43 +00:00
fixed bug when editing older videos without the needed fields
This commit is contained in:
@@ -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