Allow a post to contain only a quote (#3577)

* allow posts with only a quote

* bump version while we're at it
zio/stable
Hailey 2024-04-16 10:20:05 -07:00 committed by GitHub
parent 6980cc7f37
commit 38074854b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "bsky.app", "name": "bsky.app",
"version": "1.78.0", "version": "1.79.0",
"private": true, "private": true,
"engines": { "engines": {
"node": ">=18" "node": ">=18"

View File

@ -214,7 +214,12 @@ export const ComposePost = observer(function ComposePost({
setError('') 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?`)) setError(_(msg`Did you want to say anything?`))
return return
} }