Fix number of files on fork

This commit is contained in:
Thomas Miceli 2023-03-19 00:52:09 +01:00
parent 5bfd40f9fd
commit be7e9ab385
No known key found for this signature in database
GPG key ID: D86C6F6390AF050F

View file

@ -388,6 +388,7 @@ func fork(ctx echo.Context) error {
Private: gist.Private, Private: gist.Private,
UserID: currentUser.ID, UserID: currentUser.ID,
ForkedID: gist.ID, ForkedID: gist.ID,
NbFiles: gist.NbFiles,
} }
if err = newGist.CreateForked(); err != nil { if err = newGist.CreateForked(); err != nil {