about summary refs log tree commit diff
path: root/src/state/models/post-thread-view.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-14 15:35:15 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-14 15:35:15 -0600
commit4966b2152eb213bac34cbcb0ff01c246b7746f5c (patch)
tree5cc90408631c984018f1b5a4b06f428d3d31d4a5 /src/state/models/post-thread-view.ts
parent345ec83f26e209929ca86b3885227e8508fb2cb8 (diff)
downloadvoidsky-4966b2152eb213bac34cbcb0ff01c246b7746f5c.tar.zst
Add post embeds (images and external links)
Diffstat (limited to 'src/state/models/post-thread-view.ts')
-rw-r--r--src/state/models/post-thread-view.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/state/models/post-thread-view.ts b/src/state/models/post-thread-view.ts
index a71587d87..ea9d123d0 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 GetPostThread} from '../../third-party/api'
-import * as Embed from '../../third-party/api/src/client/types/app/bsky/feed/embed'
 import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref'
 import {AtUri} from '../../third-party/uri'
 import _omit from 'lodash.omit'
@@ -60,7 +59,7 @@ export class PostThreadViewPostModel implements GetPostThread.Post {
     declaration: {cid: '', actorType: ''},
   }
   record: Record<string, unknown> = {}
-  embed?: Embed.Main = undefined
+  embed?: GetPostThread.Post['embed'] = undefined
   parent?: PostThreadViewPostModel
   replyCount: number = 0
   replies?: PostThreadViewPostModel[]