diff --git a/pkg/api/heresphere.go b/pkg/api/heresphere.go index dd86f3f6c..68122318a 100644 --- a/pkg/api/heresphere.go +++ b/pkg/api/heresphere.go @@ -221,7 +221,7 @@ func (i HeresphereResource) getHeresphereFile(req *restful.Request, resp *restfu Height: height, Width: width, Size: file.Size, - URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v/%v", getProto(req), req.Request.Host, file.ID, file.Filename, dnt), + URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v", getProto(req), req.Request.Host, file.ID, dnt), }, }, }) @@ -335,7 +335,7 @@ func (i HeresphereResource) getHeresphereScene(req *restful.Request, resp *restf Height: height, Width: width, Size: file.Size, - URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v/%v", getProto(req), req.Request.Host, file.ID, scene.GetFunscriptTitle(), dnt), + URL: fmt.Sprintf("%v://%v/api/dms/file/%v/%v", getProto(req), req.Request.Host, file.ID, dnt), }, }, }