Skip to content

Commit

Permalink
Merge pull request #6 from vt-idiot/heresphere-api
Browse files Browse the repository at this point in the history
Update heresphere.go
  • Loading branch information
vt-idiot authored May 16, 2023
2 parents f4bf20d + 2934da4 commit 93a734c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/heresphere.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
},
})
Expand Down Expand Up @@ -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),
},
},
}
Expand Down

0 comments on commit 93a734c

Please sign in to comment.