Allow comments without definition address

This commit is contained in:
thePR0M3TH3AN committed 2025-10-29 09:20:05 -04:00
1 parent 38d706737f
commit a4e6db7151
4 files changed
+180 -10

No files matched your search

+5 -2
View File
@@ -141,7 +141,7 @@ export default class CommentThreadService {
this.parentCommentId = normalizeString(parentCommentId);
this.activeRelays = Array.isArray(relays) ? [...relays] : null;
if (!this.videoEventId || !this.videoAddressPointer) {
if (!this.videoEventId) {
this.emitError(
new Error("Unable to resolve video pointer for comment thread."),
);
@@ -158,10 +158,13 @@ export default class CommentThreadService {
const fetchLimit = toPositiveInteger(limit, this.defaultLimit);
const target = {
videoEventId: this.videoEventId,
videoDefinitionAddress: this.videoAddressPointer,
parentCommentId: this.parentCommentId,
};
if (this.videoAddressPointer) {
target.videoDefinitionAddress = this.videoAddressPointer;
}
let events = [];
try {
events = await this.fetchVideoComments(target, {