mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-05 01:52:46 +00:00
Send instance URL as Web Push JWT subject
This commit is contained in:
parent
dcac7f2035
commit
a356c860dd
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
webpushgo "github.com/SherClockHolmes/webpush-go"
|
webpushgo "github.com/SherClockHolmes/webpush-go"
|
||||||
apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
|
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/filter/usermute"
|
||||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||||
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
|
||||||
|
@ -225,6 +226,7 @@ func (r *realSender) sendToSubscription(
|
||||||
},
|
},
|
||||||
&webpushgo.Options{
|
&webpushgo.Options{
|
||||||
HTTPClient: r.httpClient,
|
HTTPClient: r.httpClient,
|
||||||
|
Subscriber: "https://" + config.GetHost(),
|
||||||
VAPIDPublicKey: vapidKeyPair.Public,
|
VAPIDPublicKey: vapidKeyPair.Public,
|
||||||
VAPIDPrivateKey: vapidKeyPair.Private,
|
VAPIDPrivateKey: vapidKeyPair.Private,
|
||||||
TTL: int(TTL.Seconds()),
|
TTL: int(TTL.Seconds()),
|
||||||
|
|
Loading…
Reference in a new issue