1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

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
} }