diff --git a/pkg/models/task_attachment.go b/pkg/models/task_attachment.go index a5ba835d..f8b68d75 100644 --- a/pkg/models/task_attachment.go +++ b/pkg/models/task_attachment.go @@ -74,6 +74,8 @@ func (ta *TaskAttachment) NewAttachment(s *xorm.Session, f io.ReadCloser, realna return err } + ta.CreatedBy, _ = user.GetFromAuth(a) // Ignoring cases where the auth is not a user + return nil }