Use HasCreator and HasEditor mixins

This commit is contained in:
2018-04-08 12:01:18 +02:00
parent 48b26f090c
commit 33636dad8e
8 changed files with 32 additions and 15 deletions

View File

@ -0,0 +1,17 @@
package main
import "github.com/animenotifier/arn"
func main() {
defer arn.Node.Close()
for post := range arn.StreamPosts() {
post.CreatedBy = post.AuthorID
post.Save()
}
for thread := range arn.StreamThreads() {
thread.CreatedBy = thread.AuthorID
thread.Save()
}
}