Added avatar check
This commit is contained in:
parent
220cfb5750
commit
567d146b0e
17
patches/delete-invalid-avatars/delete-invalid-avatars.go
Normal file
17
patches/delete-invalid-avatars/delete-invalid-avatars.go
Normal file
@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
for user := range arn.MustStreamUsers() {
|
||||
if !strings.HasPrefix(user.AvatarExtension, ".") {
|
||||
user.AvatarExtension = ""
|
||||
}
|
||||
|
||||
user.Save()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user