Skip to content

Commit

Permalink
fix: use PublicKey.ID instead of ID in sendActivity calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jadeiin committed Mar 3, 2025
1 parent 355d1e1 commit b5d1ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deliver/deliver.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func relayActivityV2(args ...string) error {
return errors.New("activity ttl expired")
}

err = sendActivity(inboxURL, RelayActor.ID, []byte(body), GlobalConfig.ActorKey())
err = sendActivity(inboxURL, RelayActor.PublicKey.ID, []byte(body), GlobalConfig.ActorKey())
if err != nil {
domain, _ := url.Parse(inboxURL)
pushErrorLogScript := "local change = redis.call('HSETNX', KEYS[1], 'last_error', ARGV[1]); if change == 1 then redis.call('EXPIRE', KEYS[1], ARGV[2]) end;"
Expand All @@ -49,7 +49,7 @@ func relayActivityV2(args ...string) error {
func registerActivity(args ...string) error {
inboxURL := args[0]
body := args[1]
err := sendActivity(inboxURL, RelayActor.ID, []byte(body), GlobalConfig.ActorKey())
err := sendActivity(inboxURL, RelayActor.PublicKey.ID, []byte(body), GlobalConfig.ActorKey())
return err
}

Expand Down

0 comments on commit b5d1ebb

Please sign in to comment.