Include home relay in generated naddr

This commit is contained in:
2024-10-22 15:54:22 +02:00
parent ce469bc37f
commit a0f0b06ad2
2 changed files with 20 additions and 3 deletions

View File

@@ -15,6 +15,10 @@ export default class Article {
return tag ? tag[1] : "";
}
get isDraft(): boolean {
return this.event.kind === 30024;
}
get url(): string {
return `${config.base_url}/${this.naddr}`;
}
@@ -47,6 +51,7 @@ export default class Article {
identifier: this.identifier,
pubkey: this.event.pubkey,
kind: this.event.kind,
relays: [config.home_relay_url],
});
}
}