mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 20:02:26 +00:00
update
This commit is contained in:
1 parent
f642e51eb8
commit
e90f3770ef
1 file changed
+9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user