mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2025-09-08 23:18:43 +00:00
Merge pull request #6 from PR0M3TH3AN/unstable
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 || "{}");
|
const content = JSON.parse(event.content || "{}");
|
||||||
return {
|
return {
|
||||||
id: event.id,
|
id: event.id,
|
||||||
// We store a 'videoRootId' in content so we can group multiple edits
|
// If content.videoRootId is missing, use event.id as a fallback
|
||||||
videoRootId: content.videoRootId || null,
|
videoRootId: content.videoRootId || event.id,
|
||||||
version: content.version ?? 1,
|
version: content.version ?? 1,
|
||||||
isPrivate: content.isPrivate ?? false,
|
isPrivate: content.isPrivate ?? false,
|
||||||
title: content.title || "",
|
title: content.title || "",
|
||||||
|
Reference in New Issue
Block a user