Propagate video root identifier from pointer metadata

This commit is contained in:
thePR0M3TH3AN committed 2025-11-14 09:30:01 -05:00
1 parent fb20487e4d
commit 04e72a0b46
4 files changed
+122 -3

No files matched your search

+5 -1
View File
@@ -186,7 +186,11 @@ export default class CommentThreadService {
this.videoKind = normalizeKind(video?.kind);
this.videoAuthorPubkeyRaw = rawVideoAuthorPubkey;
this.videoAuthorPubkey = normalizePubkey(rawVideoAuthorPubkey);
this.videoRootIdentifier = normalizeString(video?.videoRootId);
const pointerRootIdentifier = normalizeString(
video?.pointerIdentifiers?.videoRootId,
);
this.videoRootIdentifier =
normalizeString(video?.videoRootId) || pointerRootIdentifier;
this.videoRootRelay = normalizeRelay(
video?.videoRootRelay || video?.rootIdentifierRelay,
);