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:
@ -6,7 +6,8 @@ import (
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user