@@ -6,11 +6,9 @@ package mailer
66
77import (
88 "bytes"
9- "code.gitea.io/gitea/modules/storage"
109 "context"
1110 "encoding/base64"
1211 "fmt"
13- "golang.org/x/net/html"
1412 "html/template"
1513 "mime"
1614 "net/http"
@@ -30,11 +28,13 @@ import (
3028 "code.gitea.io/gitea/modules/markup"
3129 "code.gitea.io/gitea/modules/markup/markdown"
3230 "code.gitea.io/gitea/modules/setting"
31+ "code.gitea.io/gitea/modules/storage"
3332 "code.gitea.io/gitea/modules/timeutil"
3433 "code.gitea.io/gitea/modules/translation"
3534 incoming_payload "code.gitea.io/gitea/services/mailer/incoming/payload"
3635 "code.gitea.io/gitea/services/mailer/token"
3736
37+ "golang.org/x/net/html"
3838 "gopkg.in/gomail.v2"
3939)
4040
@@ -441,7 +441,7 @@ func attachmentSrcToDataURI(attachmentPath string, ctx *mailCommentContext) (str
441441 return "" , err
442442 }
443443
444- //log attachment.DownloadPath
444+ // log attachment.DownloadPath
445445 log .Trace ("attachment.DownloadURL(): %s" , attachment .DownloadURL ())
446446
447447 fr , err := storage .Attachments .Open (attachment .RelativePath ())
@@ -454,8 +454,8 @@ func attachmentSrcToDataURI(attachmentPath string, ctx *mailCommentContext) (str
454454 }
455455 }(fr )
456456
457- //fr is io.ReadSeeker
458- //get this as bytes:
457+ // fr is io.ReadSeeker
458+ // get this as bytes:
459459 content := make ([]byte , attachment .Size )
460460 _ , err = fr .Read (content )
461461 if err != nil {
0 commit comments