From b7e5d3860cf2f363b9a883189b721471e199a8f1 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Sat, 7 May 2022 13:30:05 -0400 Subject: [PATCH] Don't lowcase subreddits --- internal/domain/subreddit.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/domain/subreddit.go b/internal/domain/subreddit.go index cc679f0..457270f 100644 --- a/internal/domain/subreddit.go +++ b/internal/domain/subreddit.go @@ -4,7 +4,6 @@ import ( "context" "errors" "regexp" - "strings" "time" validation "github.com/go-ozzo/ozzo-validation/v4" @@ -22,7 +21,7 @@ type Subreddit struct { } func (sr *Subreddit) NormalizedName() string { - return strings.ToLower(sr.Name) + return sr.Name } func validPrefix(value interface{}) error {