Fixing more stuff
This commit is contained in:
@@ -36,7 +36,7 @@ func Article(w http.ResponseWriter, r *http.Request) {
|
||||
Error500(w, r)
|
||||
} else {
|
||||
var authors, tags []string
|
||||
database.GetDB().Table("author").Select("id").Where("id IN (?)", database.GetDB().Table("article_author").Select("author_id").Where("article_id = ?", article.Id)).Find(&authors)
|
||||
database.GetDB().Table("author").Select("name").Where("id IN (?)", database.GetDB().Table("article_author").Select("author_id").Where("article_id = ?", article.Id)).Find(&authors)
|
||||
database.GetDB().Table("article_tag").Where("article_id = ?", article.Id).Find(&tags)
|
||||
|
||||
ta := tmplArticle{
|
||||
|
||||
Reference in New Issue
Block a user