From 4966b2152eb213bac34cbcb0ff01c246b7746f5c Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 14 Dec 2022 15:35:15 -0600 Subject: Add post embeds (images and external links) --- src/state/models/post-thread-view.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/state/models/post-thread-view.ts') 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 = {} - embed?: Embed.Main = undefined + embed?: GetPostThread.Post['embed'] = undefined parent?: PostThreadViewPostModel replyCount: number = 0 replies?: PostThreadViewPostModel[] -- cgit 1.4.1