From 76b864234857ec01613db78ed19868a91795e99b Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 28 Mar 2014 09:06:48 -0400 Subject: [PATCH] Bug fix --- models/repo.go | 1 + routers/install.go | 1 + templates/install.tmpl | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/models/repo.go b/models/repo.go index 726d435d..4be655d2 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 b44b8903..e0ac92f1 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 aace5e8a..be5a6918 100644 --- a/templates/install.tmpl +++ b/templates/install.tmpl @@ -83,6 +83,7 @@

The git copy of each repository is saved in this directory.

+
@@ -91,6 +92,15 @@

The user has access to visit and run Gogs.

+ +
+ + +
+ +

This affects HTTP/HTTPS clone URL and somewhere in e-mail.

+
+