mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-13 08:12:31 +00:00
Include event pointer tags for reactions
This commit is contained in:
1 parent
5173553f92
commit
41d751904f
4 files changed
+303
-18
No files matched your search
@@ -42,7 +42,18 @@ export function resolveVideoPointer({
|
||||
for (const pointer of pointerCandidates) {
|
||||
const key = pointerArrayToKey(pointer);
|
||||
if (key) {
|
||||
return { pointer, key };
|
||||
const pointerEventId =
|
||||
pointer[0] === "e" && typeof pointer[1] === "string"
|
||||
? pointer[1].trim()
|
||||
: fallbackId;
|
||||
return {
|
||||
pointer,
|
||||
key,
|
||||
eventId:
|
||||
typeof pointerEventId === "string" && pointerEventId
|
||||
? pointerEventId
|
||||
: "",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user