Added patch to add empty notification list
This commit is contained in:
parent
e8c2a6ff75
commit
d5b01763bb
23
patches/add-user-notifications/add-user-notifications.go
Normal file
23
patches/add-user-notifications/add-user-notifications.go
Normal file
@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/fatih/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
defer arn.Node.Close()
|
||||
|
||||
for user := range arn.StreamUsers() {
|
||||
obj := user.Notifications()
|
||||
|
||||
if obj == nil {
|
||||
fmt.Println(user.Nick)
|
||||
arn.NewUserNotifications(user.ID).Save()
|
||||
}
|
||||
}
|
||||
|
||||
color.Green("Finished.")
|
||||
}
|
Loading…
Reference in New Issue
Block a user