mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-14 06:07:14 +02:00
Fix number of files on fork
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user