Archived
1
0

Merge branch 'master' of ssh://github.com/majestrate/nntpchan

This commit is contained in:
Jeff 2018-08-05 09:37:01 +10:00
commit 695956f9bd
2 changed files with 2 additions and 9 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

@ -621,7 +621,7 @@ func (self *PostgresDatabase) upgrade7to8() {
func (self *PostgresDatabase) upgrade8to9() {
cmds := []string {
"ALTER TABLE ArticlePosts ADD COLUMN IF NOT EXISTS frontendpubkey TEXT DEFAULT ''",
"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 {