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