comment_list.go: allow empty path on new comments
This commit is contained in:
parent
330131f390
commit
283a32e2bb
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user