diff options
Diffstat (limited to 'internal/api/activitypub/users/following.go')
| -rw-r--r-- | internal/api/activitypub/users/following.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/api/activitypub/users/following.go b/internal/api/activitypub/users/following.go index 1a6e99a53..b26226c8f 100644 --- a/internal/api/activitypub/users/following.go +++ b/internal/api/activitypub/users/following.go @@ -46,12 +46,13 @@ func (m *Module) FollowingGETHandler(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().FollowingGet(apiutil.TransferSignatureContext(c), requestedUsername, c.Request.URL) + resp, errWithCode := m.processor.Fedi().FollowingGet(apiutil.TransferSignatureContext(c), requestedUsername) if errWithCode != nil { apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1) return |
