From a356c860dd9d02127d75d81eb4803e26ace7cb71 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Sun, 1 Dec 2024 21:17:54 -0800 Subject: [PATCH] Send instance URL as Web Push JWT subject --- internal/webpush/realsender.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/webpush/realsender.go b/internal/webpush/realsender.go index 2ea9eb8a3..b08add67a 100644 --- a/internal/webpush/realsender.go +++ b/internal/webpush/realsender.go @@ -27,6 +27,7 @@ webpushgo "github.com/SherClockHolmes/webpush-go" apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" + "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/filter/usermute" "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" @@ -225,6 +226,7 @@ func (r *realSender) sendToSubscription( }, &webpushgo.Options{ HTTPClient: r.httpClient, + Subscriber: "https://" + config.GetHost(), VAPIDPublicKey: vapidKeyPair.Public, VAPIDPrivateKey: vapidKeyPair.Private, TTL: int(TTL.Seconds()),