Don't include deleted or empty articles in list

This commit is contained in:
2024-10-28 13:56:36 +01:00
parent 5906655902
commit cea96e170d
4 changed files with 36 additions and 8 deletions

View File

@@ -48,6 +48,14 @@ export default class Article {
return this.event.created_at;
}
get content(): string {
return this.event.content;
}
get isDeleted(): boolean {
return !!this.event.tags.find((t) => t[0] === "deleted");
}
get naddr(): string {
return nip19.naddrEncode({
identifier: this.identifier,