mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-09 13:52:59 +02:00
1 parent
1ff480baa6
commit
f10640433f
1 file changed
+4
@@ -132,6 +132,10 @@ func (c *Comment) AfterLoad(session *xorm.Session) {
|
||||
|
||||
// AfterDelete is invoked from XORM after the object is deleted.
|
||||
func (c *Comment) AfterDelete() {
|
||||
if c.ID <= 0 {
|
||||
return
|
||||
}
|
||||
|
||||
_, err := DeleteAttachmentsByComment(c.ID, true)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user