Don't include deleted or empty articles in list
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user