From 3f5f6262645264533860c6bb89ba30ea66095c3f Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 27 Nov 2022 03:51:09 +0000 Subject: [PATCH] Fix AppSubURL -> AppURL typo --- routers/api/v1/activitypub/authorize_interaction.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/api/v1/activitypub/authorize_interaction.go b/routers/api/v1/activitypub/authorize_interaction.go index 2def2dd3f8..1dad50abd2 100644 --- a/routers/api/v1/activitypub/authorize_interaction.go +++ b/routers/api/v1/activitypub/authorize_interaction.go @@ -52,7 +52,7 @@ func AuthorizeInteraction(ctx *context.Context) { ctx.ServerError("PersonIRIToName", err) return } - ctx.Redirect(setting.AppSubURL + name) + ctx.Redirect(setting.AppURL + name) case forgefed.RepositoryType: // Federated repository err = forgefed.OnRepository(object, func(r *forgefed.Repository) error { @@ -67,7 +67,7 @@ func AuthorizeInteraction(ctx *context.Context) { ctx.ServerError("RepositoryIRIToName", err) return } - ctx.Redirect(setting.AppSubURL + username + "/" + reponame) + ctx.Redirect(setting.AppURL + username + "/" + reponame) case forgefed.TicketType: // Federated issue or pull request err = forgefed.OnTicket(object, func(t *forgefed.Ticket) error { @@ -82,7 +82,7 @@ func AuthorizeInteraction(ctx *context.Context) { ctx.ServerError("TicketIRIToName", err) return } - ctx.Redirect(setting.AppSubURL + username + "/" + reponame + "/issues/" + strconv.FormatInt(idx, 10)) + ctx.Redirect(setting.AppURL + username + "/" + reponame + "/issues/" + strconv.FormatInt(idx, 10)) default: ctx.ServerError("Not implemented", err) return