about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/index.tsx
diff options
context:
space:
mode:
authorAnsh Nanda <anshnanda10@gmail.com>2023-05-13 11:59:08 -0700
committerAnsh Nanda <anshnanda10@gmail.com>2023-05-13 11:59:08 -0700
commit047024a5ac96a5292b6a2122835673b5a034f4c3 (patch)
tree7b13deeef077e1d976be05b0321c491bc5a55f6e /src/view/com/util/post-embeds/index.tsx
parentc24389df87cc8a079c447aad6a0e0b025def84f5 (diff)
downloadvoidsky-047024a5ac96a5292b6a2122835673b5a034f4c3.tar.zst
create algo-item model and redefine data models
Diffstat (limited to 'src/view/com/util/post-embeds/index.tsx')
-rw-r--r--src/view/com/util/post-embeds/index.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/util/post-embeds/index.tsx b/src/view/com/util/post-embeds/index.tsx
index 72158af42..3eb2720c0 100644
--- a/src/view/com/util/post-embeds/index.tsx
+++ b/src/view/com/util/post-embeds/index.tsx
@@ -26,6 +26,7 @@ import {getYoutubeVideoId} from 'lib/strings/url-helpers'
 import QuoteEmbed from './QuoteEmbed'
 import {AutoSizedImage} from '../images/AutoSizedImage'
 import AlgoItem from 'view/com/algos/AlgoItem'
+import {AlgoItemModel} from 'state/models/feeds/algo/algo-item'
 
 type Embed =
   | AppBskyEmbedRecord.View
@@ -171,7 +172,7 @@ export function PostEmbeds({
   ) {
     return (
       <AlgoItem
-        item={embed.record}
+        item={new AlgoItemModel(store, embed.record)}
         style={[pal.view, pal.border, styles.extOuter]}
       />
     )