return after redirects to web representation (#755)

This commit is contained in:
tobi
2022-08-16 20:50:26 +02:00
committed by GitHub
parent ac6ed3d939
commit 586ebb5059
7 changed files with 7 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ func (m *Module) StatusGETHandler(c *gin.Context) {
if format == string(api.TextHTML) {
// redirect to the status
c.Redirect(http.StatusSeeOther, "/@"+requestedUsername+"/statuses/"+requestedStatusID)
return
}
resp, errWithCode := m.processor.GetFediStatus(transferContext(c), requestedUsername, requestedStatusID, c.Request.URL)