This commit is contained in:
thePR0M3TH3AN committed 2025-11-05 11:12:38 -05:00
1 parent f642e51eb8
commit e90f3770ef
1 file changed
+9
+9
View File
@@ -943,6 +943,9 @@ function isVideoCommentEvent(event, descriptor) {
let hasEventTag = !requiresEventMatch;
let hasParentTag = false;
let matchedDefinitionPointer = false;
let matchedEventPointer = false;
const expectedRootKind = normalizeDescriptorString(
targetDescriptor.rootKind || targetDescriptor.videoKind,
);
@@ -998,6 +1001,7 @@ function isVideoCommentEvent(event, descriptor) {
normalizedValue === normalizedVideoDefinitionAddress
) {
hasDefinitionTag = true;
matchedDefinitionPointer = true;
}
} else if (lowerName === "e") {
if (
@@ -1005,6 +1009,7 @@ function isVideoCommentEvent(event, descriptor) {
normalizedValue === normalizedVideoEventId
) {
hasEventTag = true;
matchedEventPointer = true;
}
if (
normalizedParentCommentId &&
@@ -1043,6 +1048,10 @@ function isVideoCommentEvent(event, descriptor) {
}
}
if (!hasDefinitionTag && requiresAddressMatch && matchedEventPointer) {
hasDefinitionTag = true;
}
if (!hasIdentifierTag || !hasDefinitionTag || !hasEventTag) {
return false;
}