diff --git a/routers/api/v1/activitypub/repo.go b/routers/api/v1/activitypub/repo.go index 30142ac61d..b41ffaca2c 100644 --- a/routers/api/v1/activitypub/repo.go +++ b/routers/api/v1/activitypub/repo.go @@ -134,10 +134,9 @@ func RepoInbox(ctx *context.APIContext) { if t.Origin != nil { // New pull request return activitypub.PullRequest(ctx, t) - } else { - // New issue - return activitypub.Issue(ctx, t) } + // New issue + return activitypub.Issue(ctx, t) }) case ap.NoteType: // New comment