aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue_watch.go
diff options
context:
space:
mode:
author6543 <m.huber@kithara.com>2024-01-21 14:42:35 +0100
committerGitHub <noreply@github.com>2024-01-21 21:42:35 +0800
commit49d76639295a89bac8a656360782f0c3a1d2707c (patch)
tree0cd381a1969ebb0248959e9c08d6cf63ec916504 /routers/web/repo/issue_watch.go
parent1df06e3f399307c14b60a2b88e1b26cedc1ae2f9 (diff)
downloadgitea-49d76639295a89bac8a656360782f0c3a1d2707c.tar.gz
gitea-49d76639295a89bac8a656360782f0c3a1d2707c.zip
Revert adding htmx until we finaly decide to add it (#28879)
Diffstat (limited to 'routers/web/repo/issue_watch.go')
-rw-r--r--routers/web/repo/issue_watch.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/routers/web/repo/issue_watch.go b/routers/web/repo/issue_watch.go
index 1f51ceba5e..1cb5cc7162 100644
--- a/routers/web/repo/issue_watch.go
+++ b/routers/web/repo/issue_watch.go
@@ -8,15 +8,10 @@ import (
"strconv"
issues_model "code.gitea.io/gitea/models/issues"
- "code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/log"
)
-const (
- tplWatching base.TplName = "repo/issue/view_content/watching"
-)
-
// IssueWatch sets issue watching
func IssueWatch(ctx *context.Context) {
issue := GetActionIssue(ctx)
@@ -57,7 +52,5 @@ func IssueWatch(ctx *context.Context) {
return
}
- ctx.Data["Issue"] = issue
- ctx.Data["IssueWatch"] = &issues_model.IssueWatch{IsWatching: watch}
- ctx.HTML(http.StatusOK, tplWatching)
+ ctx.Redirect(issue.Link())
}