Add post deletion
This commit is contained in:
parent
bd1a4b198e
commit
41ae87e770
8 changed files with 114 additions and 9 deletions
|
@ -175,6 +175,13 @@ export class PostThreadViewPostModel implements GetPostThread.Post {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
async delete() {
|
||||
await this.rootStore.api.app.bsky.feed.post.delete({
|
||||
did: this.author.did,
|
||||
rkey: new AtUri(this.uri).rkey,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export class PostThreadViewModel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue