about summary refs log tree commit diff
path: root/src/view/com/posts
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/posts
parente99eb7bfad2fd3eeb7cfcec26e554580c73c4d7d (diff)
downloadvoidsky-3ae5f2886b5832e1653f5a6a9529c0ac2fc47208.tar.zst
Enable image-only posts
Diffstat (limited to 'src/view/com/posts')
-rw-r--r--src/view/com/posts/FeedItem.tsx18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx
index 51f76904f..12ad6a52a 100644
--- a/src/view/com/posts/FeedItem.tsx
+++ b/src/view/com/posts/FeedItem.tsx
@@ -187,13 +187,17 @@ export const FeedItem = observer(function FeedItem({
                 </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={styles.postEmbeds} />
             <PostCtrls
               replyCount={item.replyCount}