Patches cleanup
This commit is contained in:
19
patches/fix-theme/fix-theme.go
Normal file
19
patches/fix-theme/fix-theme.go
Normal file
@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
defer arn.Node.Close()
|
||||
|
||||
for user := range arn.StreamUsers() {
|
||||
settings := user.Settings()
|
||||
|
||||
if !user.IsPro() {
|
||||
settings.Theme = "light"
|
||||
}
|
||||
|
||||
settings.Save()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user