about summary refs log tree commit diff
path: root/src/view/com/post/Post.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-19 18:51:13 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-19 18:51:13 -0600
commit3ae5f2886b5832e1653f5a6a9529c0ac2fc47208 (patch)
treec98ca88860562718821a7fb40106d32b6f4673f6 /src/view/com/post/Post.tsx
parente99eb7bfad2fd3eeb7cfcec26e554580c73c4d7d (diff)
downloadvoidsky-3ae5f2886b5832e1653f5a6a9529c0ac2fc47208.tar.zst
Enable image-only posts
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r--src/view/com/post/Post.tsx18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx
index 4d756758b..814ab4cb6 100644
--- a/src/view/com/post/Post.tsx
+++ b/src/view/com/post/Post.tsx
@@ -175,13 +175,17 @@ export const Post = observer(function Post({
               </Link>
             </View>
           )}
-          <View style={styles.postTextContainer}>
-            <RichText
-              text={record.text}
-              entities={record.entities}
-              style={styles.postText}
-            />
-          </View>
+          {record.text ? (
+            <View style={styles.postTextContainer}>
+              <RichText
+                text={record.text}
+                entities={record.entities}
+                style={styles.postText}
+              />
+            </View>
+          ) : (
+            <View style={{height: 5}} />
+          )}
           <PostEmbeds embed={item.embed} style={{marginBottom: 10}} />
           <PostCtrls
             replyCount={item.replyCount}