Give an article's clone its own uuid. This fixes a bug resulting in an infinite loop of writing stuff to a file.
This commit is contained in:
parent
9b4a8e1890
commit
951949f98d
@ -901,6 +901,7 @@ func AllowEditArticle(c *b.Config, db *b.DB, s map[string]*Session) http.Handler
|
||||
}
|
||||
|
||||
newArticle := *oldArticle
|
||||
newArticle.UUID = uuid.New()
|
||||
newArticle.Published = false
|
||||
newArticle.Rejected = true
|
||||
newArticle.EditedID = oldArticle.ID
|
||||
|
Loading…
x
Reference in New Issue
Block a user