From 95a13330b4f853bd49296603cdc308794d5bc9b7 Mon Sep 17 00:00:00 2001 From: zjj Date: Wed, 23 Aug 2023 13:41:53 +0800 Subject: [PATCH] ThemeContainsPark2 --- models/user/user.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/user/user.go b/models/user/user.go index 07e6e4ba0ea3b..6f7ab22700920 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -1296,6 +1296,7 @@ func GetOrderByName() string { } // user customer funtions +/* func contain(s []string, e string) bool { for _, a := range s { if a == e { @@ -1304,8 +1305,10 @@ func contain(s []string, e string) bool { } return false } +*/ func (u *User) ThemeContainsPark() bool { ars := []string{"plex", "aquamarine", "dark", "dracula", "hotline", "organizr", "space-gray", "hotpink", "onedark", "overseerr", "nord"} - return contain(ars, u.Theme) + //return contain(ars, u.Theme) + return util.SliceContains(ars, u.Theme) }