mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-31 09:52:24 +00:00
Merge pull request #1092 from PR0M3TH3AN/fix-watch-history-pointer-447070525374806935
Fix watch history hydration failure due to incorrect pointer identifier
This commit is contained in:
1 file changed
+6
-6
@@ -24,16 +24,16 @@ export function resolveVideoPointer({
|
||||
const pointerCandidates = [];
|
||||
const normalizedRelay = normalizeString(relay);
|
||||
|
||||
const rootId = normalizeString(videoRootId);
|
||||
if (rootId && normalizedPubkey) {
|
||||
const ptr = ["a", `${normalizedKind}:${normalizedPubkey}:${rootId}`];
|
||||
const normalizedDTag = normalizeString(dTag);
|
||||
if (normalizedDTag && normalizedPubkey) {
|
||||
const ptr = ["a", `${normalizedKind}:${normalizedPubkey}:${normalizedDTag}`];
|
||||
if (normalizedRelay) ptr.push(normalizedRelay);
|
||||
pointerCandidates.push(ptr);
|
||||
}
|
||||
|
||||
const normalizedDTag = normalizeString(dTag);
|
||||
if (normalizedDTag && normalizedPubkey) {
|
||||
const ptr = ["a", `${normalizedKind}:${normalizedPubkey}:${normalizedDTag}`];
|
||||
const rootId = normalizeString(videoRootId);
|
||||
if (rootId && normalizedPubkey) {
|
||||
const ptr = ["a", `${normalizedKind}:${normalizedPubkey}:${rootId}`];
|
||||
if (normalizedRelay) ptr.push(normalizedRelay);
|
||||
pointerCandidates.push(ptr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user