Archived
1
0

Revert "add check for short posts"

This reverts commit d5e0f7d698.
This commit is contained in:
Jeff Becker 2018-06-16 18:08:14 -04:00
parent c1fd82bab5
commit e78e52debb
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 0 additions and 13 deletions

View File

@ -680,13 +680,6 @@ func (self *httpFrontend) handle_postRequest(pr *postRequest, b bannedFunc, e er
e(err)
return
}
if !hasAtLeastNWords(m, 3) {
err = errors.New("your message is too short")
e(err)
return
}
nntp := new(nntpArticle)
defer nntp.Reset()
var banned bool

View File

@ -800,9 +800,3 @@ func storeMessage(daemon *NNTPDaemon, hdr textproto.MIMEHeader, body io.Reader)
}
return
}
func hasAtLeastNWords(str string, n int) bool {
parts := strings.Split(str, " ")
return len(parts) > n
}