comment_list.go: allow empty path on new comments

This commit is contained in:
Adhityaa Chandrasekar 2018-09-23 00:41:02 -04:00
parent 330131f390
commit 283a32e2bb

View File

@ -6,7 +6,8 @@ import (
) )
func commentList(commenterHex string, domain string, path string, includeUnapproved bool) ([]comment, map[string]commenter, error) { func commentList(commenterHex string, domain string, path string, includeUnapproved bool) ([]comment, map[string]commenter, error) {
if commenterHex == "" || domain == "" || path == "" { // path can be empty
if commenterHex == "" || domain == "" {
return nil, nil, errorMissingField return nil, nil, errorMissingField
} }