diff --git a/contrib/backends/srndv2/src/srnd/frontend_http.go b/contrib/backends/srndv2/src/srnd/frontend_http.go index 852a89a..dcd3ca9 100644 --- a/contrib/backends/srndv2/src/srnd/frontend_http.go +++ b/contrib/backends/srndv2/src/srnd/frontend_http.go @@ -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 diff --git a/contrib/backends/srndv2/src/srnd/postgres.go b/contrib/backends/srndv2/src/srnd/postgres.go index bc98833..3d137e9 100644 --- a/contrib/backends/srndv2/src/srnd/postgres.go +++ b/contrib/backends/srndv2/src/srnd/postgres.go @@ -620,8 +620,8 @@ func (self *PostgresDatabase) upgrade7to8() { } func (self *PostgresDatabase) upgrade8to9() { - cmds := []string{ - "ALTER TABLE ArticlePosts ADD COLUMN IF NOT EXISTS frontendpubkey TEXT DEFAULT ''", + cmds := []string { + "ALTER TABLE ArticlePosts ADD COLUMN frontendpubkey TEXT", "CREATE TABLE IF NOT EXISTS nntpchan_pubkeys(status VARCHAR(16) NOT NULL, pubkey VARCHAR(64) PRIMARY KEY)", } for _, cmd := range cmds {