diff --git a/models/repo.go b/models/repo.go index 726d435d33..4be655d287 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 b44b89034e..e0ac92f130 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 aace5e8a85..be5a69186d 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.
+