mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-20 03:11:35 +02:00
federation_service: remove trailing slash from repository inbox
The API endpoint specifies that the repository inbox is {repository-id}/inbox, not {repository-id}/inbox/. The HTTP signature validation relies on that to properly validate the signature incoming request.
This commit is contained in:
parent
c9853e9e3a
commit
1f73db1ae8
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ func SendLikeActivities(ctx context.Context, doer user.User, repoID int64) error
|
|||
return err
|
||||
}
|
||||
|
||||
_, err = apclient.Post(json, fmt.Sprintf("%v/inbox/", activity.Object))
|
||||
_, err = apclient.Post(json, fmt.Sprintf("%v/inbox", activity.Object))
|
||||
if err != nil {
|
||||
log.Error("error %v while sending activity: %q", err, activity)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue