Removed old user follows storage

This commit is contained in:
2019-11-19 13:55:48 +09:00
parent 803d303420
commit afc59ebb97
4 changed files with 169 additions and 218 deletions

View File

@ -1,22 +0,0 @@
package main
import (
"github.com/akyoto/color"
"github.com/animenotifier/notify.moe/arn"
)
func main() {
defer arn.Node.Close()
for follows := range arn.StreamUserFollows() {
user, err := arn.GetUser(follows.UserID)
if err != nil {
color.Red(err.Error())
continue
}
user.FollowIDs = follows.Items
user.Save()
}
}