mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
Don't lowcase subreddits
This commit is contained in:
parent
fe8baf7989
commit
b7e5d3860c
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue