Enable image-only posts

This commit is contained in:
Paul Frazee 2022-12-19 18:51:13 -06:00
parent e99eb7bfad
commit 3ae5f2886b
4 changed files with 47 additions and 30 deletions

View file

@ -117,7 +117,7 @@ export const ComposePost = observer(function ComposePost({
return
}
setError('')
if (text.trim().length === 0) {
if (text.trim().length === 0 && selectedPhotos.length === 0) {
setError('Did you want to say anything?')
return false
}