summaryrefslogtreecommitdiff
path: root/internal/api/s2s/user/repliesget.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-08-16 20:50:26 +0200
committerLibravatar GitHub <noreply@github.com>2022-08-16 19:50:26 +0100
commit586ebb5059f2083901667cb1fe7c5c22cf9798ac (patch)
treef38937891c61b37833b48ae9e8a7732101404c17 /internal/api/s2s/user/repliesget.go
parent[chore] Update bun / sqlite versions; update gtsmodels (#754) (diff)
downloadgotosocial-586ebb5059f2083901667cb1fe7c5c22cf9798ac.tar.xz
return after redirects to web representation (#755)
Diffstat (limited to 'internal/api/s2s/user/repliesget.go')
-rw-r--r--internal/api/s2s/user/repliesget.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/s2s/user/repliesget.go b/internal/api/s2s/user/repliesget.go
index 6ef5a5f43..86a57e692 100644
--- a/internal/api/s2s/user/repliesget.go
+++ b/internal/api/s2s/user/repliesget.go
@@ -113,6 +113,7 @@ func (m *Module) StatusRepliesGETHandler(c *gin.Context) {
if format == string(api.TextHTML) {
// redirect to the status
c.Redirect(http.StatusSeeOther, "/@"+requestedUsername+"/statuses/"+requestedStatusID)
+ return
}
var page bool