From 38074854b25aefb6e8d5602c280dda77727b7e6a Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 16 Apr 2024 10:20:05 -0700 Subject: [PATCH] Allow a post to contain only a quote (#3577) * allow posts with only a quote * bump version while we're at it --- package.json | 2 +- src/view/com/composer/Composer.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 62923434a0..4b2b6187a0 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 24f61a2ee1..2d5c9ee7f3 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 }