Don't lowcase subreddits

This commit is contained in:
Andre Medeiros 2022-05-07 13:30:05 -04:00
parent fe8baf7989
commit b7e5d3860c

View file

@ -4,7 +4,6 @@ import (
"context" "context"
"errors" "errors"
"regexp" "regexp"
"strings"
"time" "time"
validation "github.com/go-ozzo/ozzo-validation/v4" validation "github.com/go-ozzo/ozzo-validation/v4"
@ -22,7 +21,7 @@ type Subreddit struct {
} }
func (sr *Subreddit) NormalizedName() string { func (sr *Subreddit) NormalizedName() string {
return strings.ToLower(sr.Name) return sr.Name
} }
func validPrefix(value interface{}) error { func validPrefix(value interface{}) error {