parent
ffbca5e162
commit
6464d92dd4
3 changed files with 19 additions and 3 deletions
|
@ -66,7 +66,13 @@ func bookHandler(h handler) {
|
|||
return
|
||||
}
|
||||
data.Book = book
|
||||
data.S.Title = book.Title + " by " + book.Author[0] + " -- " + data.S.Title
|
||||
|
||||
author := ""
|
||||
if len(book.Author) > 0 {
|
||||
author = " by " + book.Author[0]
|
||||
}
|
||||
data.S.Title = book.Title + author + " -- " + data.S.Title
|
||||
|
||||
data.Description = strings.Split(data.Book.Description, "\n")
|
||||
data.FlaggedBadQuality = false
|
||||
for _, reporter := range book.BadQualityReporters {
|
||||
|
|
Reference in a new issue