mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		| @@ -15,7 +15,7 @@ import ( | ||||
| 	api "code.gitea.io/gitea/modules/structs" | ||||
| 	"code.gitea.io/gitea/modules/timeutil" | ||||
|  | ||||
| 	gouuid "github.com/satori/go.uuid" | ||||
| 	gouuid "github.com/google/uuid" | ||||
| ) | ||||
|  | ||||
| // HookContentType is the content type of a web hook | ||||
| @@ -769,7 +769,7 @@ func createHookTask(e Engine, t *HookTask) error { | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	t.UUID = gouuid.NewV4().String() | ||||
| 	t.UUID = gouuid.New().String() | ||||
| 	t.PayloadContent = string(data) | ||||
| 	_, err = e.Insert(t) | ||||
| 	return err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user