Skip to content

Commit

Permalink
Allow a post to contain only a quote (#3577)
Browse files Browse the repository at this point in the history
* allow posts with only a quote

* bump version while we're at it
  • Loading branch information
haileyok authored Apr 16, 2024
1 parent 6980cc7 commit 3807485
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bsky.app",
"version": "1.78.0",
"version": "1.79.0",
"private": true,
"engines": {
"node": ">=18"
Expand Down
7 changes: 6 additions & 1 deletion src/view/com/composer/Composer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3807485

Please sign in to comment.