1
0
Fork 0
forked from forgejo/forgejo

fix: delete attachment after remove comment.

This commit is contained in:
Bo-Yi Wu 2017-01-25 22:54:52 +08:00 committed by Kim "BKC" Carlbäcker
parent 2831267db1
commit 691fbdf1d3
5 changed files with 11 additions and 7 deletions

View file

@ -573,7 +573,7 @@ func (engine *Engine) Id(id interface{}) *Session {
return session.Id(id)
}
// ID mehtod provoide a condition as (id) = ?
// ID method provoide a condition as (id) = ?
func (engine *Engine) ID(id interface{}) *Session {
session := engine.NewSession()
session.IsAutoClose = true
@ -1599,6 +1599,8 @@ func (engine *Engine) formatTime(tz *time.Location, sqlTypeName string, t time.T
return t
}
if tz != nil {
t = t.In(tz)
} else {
t = engine.TZTime(t)
}
switch sqlTypeName {