aboutsummaryrefslogtreecommitdiff
path: root/models/attachment.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/attachment.go')
-rw-r--r--models/attachment.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/attachment.go b/models/attachment.go
index fb4ec88d..31ca7f3e 100644
--- a/models/attachment.go
+++ b/models/attachment.go
@@ -15,7 +15,7 @@ import (
"github.com/go-xorm/xorm"
gouuid "github.com/satori/go.uuid"
- "github.com/gogits/gogs/pkg/setting"
+ "github.com/gogs/gogs/pkg/setting"
)
// Attachment represent a attachment of issue/comment/release.
@@ -27,7 +27,7 @@ type Attachment struct {
ReleaseID int64 `xorm:"INDEX"`
Name string
- Created time.Time `xorm:"-"`
+ Created time.Time `xorm:"-" json:"-"`
CreatedUnix int64
}