Enable image-only posts
This commit is contained in:
parent
e99eb7bfad
commit
3ae5f2886b
4 changed files with 47 additions and 30 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue