summaryrefslogtreecommitdiff
path: root/internal/api/activitypub/users/followers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/activitypub/users/followers.go')
-rw-r--r--internal/api/activitypub/users/followers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/api/activitypub/users/followers.go b/internal/api/activitypub/users/followers.go
index 649e20e45..4eec8abc1 100644
--- a/internal/api/activitypub/users/followers.go
+++ b/internal/api/activitypub/users/followers.go
@@ -46,12 +46,13 @@ func (m *Module) FollowersGETHandler(c *gin.Context) {
}
if format == string(apiutil.TextHTML) {
- // redirect to the user's profile
+ // This isn't an ActivityPub request;
+ // redirect to the user's profile.
c.Redirect(http.StatusSeeOther, "/@"+requestedUsername)
return
}
- resp, errWithCode := m.processor.Fedi().FollowersGet(apiutil.TransferSignatureContext(c), requestedUsername, c.Request.URL)
+ resp, errWithCode := m.processor.Fedi().FollowersGet(apiutil.TransferSignatureContext(c), requestedUsername)
if errWithCode != nil {
apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1)
return