diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-16 16:16:43 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-16 16:16:43 -0600 |
commit | 41ae87e770f23ebe5ad02dbc68a497e0fb2f2a3d (patch) | |
tree | 0bba2afc4eaa19abe64fafeaf2e6ac50861cae15 /src/state/models/post-thread-view.ts | |
parent | bd1a4b198e3682f96354d83f1e1efccf31813f82 (diff) | |
download | voidsky-41ae87e770f23ebe5ad02dbc68a497e0fb2f2a3d.tar.zst |
Add post deletion
Diffstat (limited to 'src/state/models/post-thread-view.ts')
-rw-r--r-- | src/state/models/post-thread-view.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/state/models/post-thread-view.ts b/src/state/models/post-thread-view.ts index 58fee1619..0334c8442 100644 --- a/src/state/models/post-thread-view.ts +++ b/src/state/models/post-thread-view.ts @@ -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 { |