From c982b676265f185015768266195ce9fc527fb954 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 27 Nov 2022 01:44:02 +0000 Subject: [PATCH] Set issue Index, not ID, when creating issues from an AS object --- routers/api/v1/activitypub/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/activitypub/create.go b/routers/api/v1/activitypub/create.go index a76fb8b89a..e2bb2e4618 100644 --- a/routers/api/v1/activitypub/create.go +++ b/routers/api/v1/activitypub/create.go @@ -194,7 +194,7 @@ func createIssue(ctx context.Context, ticket *forgefed.Ticket) error { return err } issue := &issues_model.Issue{ - ID: idx, + Index: idx, RepoID: repo.ID, Repo: repo, Title: ticket.Summary.String(),