about summary refs log tree commit diff
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
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
-rw-r--r--package.json2
-rw-r--r--src/view/com/composer/Composer.tsx7
2 files changed, 7 insertions, 2 deletions
diff --git a/package.json b/package.json
index 62923434a..4b2b6187a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "bsky.app",
-  "version": "1.78.0",
+  "version": "1.79.0",
   "private": true,
   "engines": {
     "node": ">=18"
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
     }