diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-22 09:17:07 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-22 09:17:07 -0600 |
commit | 4913a07e3365d2004e67e9131dd4b4c15094dd33 (patch) | |
tree | 6247f7fe52fdc8a6b29143f1d2f247b4e28987ec /src/state/models/post-thread-view.ts | |
parent | 7f4a54ff0d83983460e787fde21707405acc38b0 (diff) | |
download | voidsky-4913a07e3365d2004e67e9131dd4b4c15094dd33.tar.zst |
Unvendor the api and switch to @atproto/api
Diffstat (limited to 'src/state/models/post-thread-view.ts')
-rw-r--r-- | src/state/models/post-thread-view.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/state/models/post-thread-view.ts b/src/state/models/post-thread-view.ts index 0c8e9c5fd..f0f0d5ef3 100644 --- a/src/state/models/post-thread-view.ts +++ b/src/state/models/post-thread-view.ts @@ -1,6 +1,5 @@ import {makeAutoObservable, runInAction} from 'mobx' -import {AppBskyFeedGetPostThread as GPT} from '../../third-party/api' -import type * as GetPostThread from '../../third-party/api/src/client/types/app/bsky/feed/getPostThread' +import {AppBskyFeedGetPostThread as GetPostThread} from '@atproto/api' import {AtUri} from '../../third-party/uri' import {RootStoreModel} from './root-store' import * as apilib from '../lib/api' @@ -297,7 +296,7 @@ export class PostThreadViewModel { this.isRefreshing = false this.hasLoaded = true this.error = err ? err.toString() : '' - this.notFound = err instanceof GPT.NotFoundError + this.notFound = err instanceof GetPostThread.NotFoundError } // loader functions |