Browse Source

Bug fix

pull/33/head
Unknown 11 years ago
parent
commit
f9fd972cbe
  1. 4
      modules/mailer/mailer.go
  2. 4
      modules/middleware/repo.go

4
modules/mailer/mailer.go

@ -57,12 +57,12 @@ func processMailQueue() {
info = ", info: " + msg.Info info = ", info: " + msg.Info
} }
log.Error(fmt.Sprintf("Async sent email %d succeed, not send emails: %s%s err: %s", num, tos, info, err)) log.Error(fmt.Sprintf("Async sent email %d succeed, not send emails: %s%s err: %s", num, tos, info, err))
return } else {
}
log.Trace(fmt.Sprintf("Async sent email %d succeed, sent emails: %s%s", num, tos, info)) log.Trace(fmt.Sprintf("Async sent email %d succeed, sent emails: %s%s", num, tos, info))
} }
} }
} }
}
// Direct Send mail message // Direct Send mail message
func Send(msg *Message) (int, error) { func Send(msg *Message) (int, error) {

4
modules/middleware/repo.go

@ -65,9 +65,11 @@ func RepoAssignment(redirect bool) martini.Handler {
} }
ctx.Repo.IsValid = true ctx.Repo.IsValid = true
if ctx.User != nil {
ctx.Repo.IsWatching = models.IsWatching(ctx.User.Id, repo.Id) ctx.Repo.IsWatching = models.IsWatching(ctx.User.Id, repo.Id)
}
ctx.Repo.Repository = repo ctx.Repo.Repository = repo
ctx.Repo.CloneLink.SSH = fmt.Sprintf("git@%s:%s/%s.git", base.Domain, ctx.User.LowerName, repo.LowerName) ctx.Repo.CloneLink.SSH = fmt.Sprintf("git@%s:%s/%s.git", base.Domain, user.LowerName, repo.LowerName)
ctx.Data["IsRepositoryValid"] = true ctx.Data["IsRepositoryValid"] = true
ctx.Data["Repository"] = repo ctx.Data["Repository"] = repo

Loading…
Cancel
Save