diff --git a/models/repo.go b/models/repo.go index 726d435d3..4be655d28 100644 --- a/models/repo.go +++ b/models/repo.go @@ -510,6 +510,7 @@ func NotifyWatchers(act *Action) error { continue } + act.Id = 0 act.UserId = watches[i].UserId if _, err = orm.InsertOne(act); err != nil { return errors.New("repo.NotifyWatchers(create action): " + err.Error()) diff --git a/routers/install.go b/routers/install.go index b44b89034..e0ac92f13 100644 --- a/routers/install.go +++ b/routers/install.go @@ -22,6 +22,7 @@ func Install(ctx *middleware.Context) { ctx.Data["DbCfg"] = models.DbCfg ctx.Data["RepoRootPath"] = base.RepoRootPath ctx.Data["RunUser"] = base.RunUser + ctx.Data["AppUrl"] = base.AppUrl ctx.Data["PageIsInstall"] = true if ctx.Req.Method == "GET" { diff --git a/templates/install.tmpl b/templates/install.tmpl index aace5e8a8..be5a69186 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -83,6 +83,7 @@
The git copy of each repository is saved in this directory.
+The user has access to visit and run Gogs.
This affects HTTP/HTTPS clone URL and somewhere in e-mail.
+