Revert "Don't lowcase subreddits"

This reverts commit b7e5d3860c.
This commit is contained in:
Andre Medeiros 2022-05-07 13:31:52 -04:00
parent b7e5d3860c
commit f8b6c062e8

View file

@ -4,6 +4,7 @@ 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"
@ -21,7 +22,7 @@ type Subreddit struct {
} }
func (sr *Subreddit) NormalizedName() string { func (sr *Subreddit) NormalizedName() string {
return sr.Name return strings.ToLower(sr.Name)
} }
func validPrefix(value interface{}) error { func validPrefix(value interface{}) error {