about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-04-16 10:20:05 -0700
committerGitHub <noreply@github.com>2024-04-16 10:20:05 -0700
commit38074854b25aefb6e8d5602c280dda77727b7e6a (patch)
tree5c24f12cde30a630ce6abccf3b74a5b51dc55457 /src
parent6980cc7f3765be34cb24e7a6c28fd65298d20642 (diff)
downloadvoidsky-38074854b25aefb6e8d5602c280dda77727b7e6a.tar.zst
Allow a post to contain only a quote (#3577)
* allow posts with only a quote

* bump version while we're at it
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/Composer.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index 24f61a2ee..2d5c9ee7f 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -214,7 +214,12 @@ export const ComposePost = observer(function ComposePost({
 
     setError('')
 
-    if (richtext.text.trim().length === 0 && gallery.isEmpty && !extLink) {
+    if (
+      richtext.text.trim().length === 0 &&
+      gallery.isEmpty &&
+      !extLink &&
+      !quote
+    ) {
       setError(_(msg`Did you want to say anything?`))
       return
     }