mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 10:55:40 -04:00
api: rename VoteDirection to Direction
This commit is contained in:
@ -65,9 +65,9 @@ func commentList(commenterHex string, domain string, path string, includeUnappro
|
||||
`
|
||||
row := db.QueryRow(statement, c.CommentHex, commenterHex)
|
||||
|
||||
if err = row.Scan(&c.VoteDirection); err != nil {
|
||||
if err = row.Scan(&c.Direction); err != nil {
|
||||
// TODO: is the only error here that there is no such entry?
|
||||
c.VoteDirection = 0
|
||||
c.Direction = 0
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user