Fix relay list tag

This commit is contained in:
2023-06-26 12:57:53 +01:00
parent e2a5f3ebd1
commit 9f8095b0df

View File

@ -262,8 +262,10 @@ export class EventPublisher {
if (rx.settings.write && !rx.settings.read) { if (rx.settings.write && !rx.settings.read) {
rTag.push("write"); rTag.push("write");
} }
if (rx.settings.read || rx.settings.write) {
eb.tag(rTag); eb.tag(rTag);
} }
}
return await this.#sign(eb); return await this.#sign(eb);
} }