From 283a32e2bbf3112fbc15f786ebdbc67f14411bae Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Sun, 23 Sep 2018 00:41:02 -0400 Subject: [PATCH] comment_list.go: allow empty path on new comments --- api/comment_list.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/comment_list.go b/api/comment_list.go index 52bab41..90bcd2a 100644 --- a/api/comment_list.go +++ b/api/comment_list.go @@ -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 }