Allow posts with just an external link (#2079)

zio/stable
Paul Frazee 2023-12-04 11:59:59 -08:00 committed by GitHub
parent e47c3dbe0e
commit 9562a80908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ export const ComposePost = observer(function ComposePost({
setError('') setError('')
if (richtext.text.trim().length === 0 && gallery.isEmpty) { if (richtext.text.trim().length === 0 && gallery.isEmpty && !extLink) {
setError('Did you want to say anything?') setError('Did you want to say anything?')
return return
} }