3
0

Revert part of refactoring, fix attachment loading

This commit is contained in:
Denis Arh
2018-09-25 21:09:01 +02:00
parent 1689228e31
commit 89a4b9a675

View File

@@ -67,11 +67,11 @@ func (svc *attachment) FindByID(id uint64) (*types.Attachment, error) {
}
func (svc *attachment) OpenOriginal(att *types.Attachment) (io.ReadSeeker, error) {
return svc.store.Open(attachmentURL)
return svc.store.Open(att.Url)
}
func (svc *attachment) OpenPreview(att *types.Attachment) (io.ReadSeeker, error) {
return svc.store.Open(attachmentPreviewURL)
return svc.store.Open(att.PreviewUrl)
}