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"
"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 {