Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fdb854e6c7 | |||
| f934c2917f | |||
| 1bfefdccb3 |
2
DB.go
2
DB.go
@@ -92,7 +92,7 @@ func (this *WikiDB) GetRevision(revId int) (*Article, error) {
|
||||
}
|
||||
|
||||
func (this *WikiDB) GetLatestVersion(title string) (*Article, error) {
|
||||
row := this.db.QueryRow(`SELECT articles.* FROM articles WHERE article = (SELECT id FROM titles WHERE title = ?) ORDER BY modified DESC LIMIT 1`, title)
|
||||
row := this.db.QueryRow(`SELECT articles.* FROM articles WHERE article = (SELECT id FROM titles WHERE title = ?) ORDER BY modified DESC LIMIT 1`, this.normaliseTitle(title))
|
||||
return this.parseArticle(row)
|
||||
}
|
||||
|
||||
|
||||
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@
|
||||
# Makefile for YATWiki3
|
||||
#
|
||||
|
||||
VERSION:=3.1.2
|
||||
VERSION:=3.1.3
|
||||
|
||||
SOURCES:=Makefile \
|
||||
static \
|
||||
|
||||
@@ -36,6 +36,9 @@ This package can be installed via go get: `go get code.ivysaur.me/yatwiki`
|
||||
|
||||
=CHANGELOG=
|
||||
|
||||
2017-10-29 3.1.3
|
||||
- Fix one more case of article title normalisation
|
||||
|
||||
2017-10-29 3.1.2
|
||||
- Lock dependency versions
|
||||
- Enhancement: Advertise build number in Server headers
|
||||
|
||||
Reference in New Issue
Block a user