mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 19:02:28 +00:00
Propagate video root identifier from pointer metadata
This commit is contained in:
1 parent
fb20487e4d
commit
04e72a0b46
4 files changed
+122
-3
No files matched your search
@@ -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,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user