mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 02:33:22 -06:00
Implement push subscription API
This commit is contained in:
parent
1fe29c7c43
commit
8b9a228ea2
26 changed files with 2084 additions and 101 deletions
|
|
@ -101,7 +101,7 @@ func (r *realSender) Send(
|
|||
case gtsmodel.NotificationAdminReport:
|
||||
notify = *subscription.NotifyAdminReport
|
||||
case gtsmodel.NotificationPendingFave:
|
||||
notify = *subscription.NotifyPendingFave
|
||||
notify = *subscription.NotifyPendingFavourite
|
||||
case gtsmodel.NotificationPendingReply:
|
||||
notify = *subscription.NotifyPendingReply
|
||||
case gtsmodel.NotificationPendingReblog:
|
||||
|
|
@ -174,7 +174,7 @@ func (r *realSender) sendToSubscription(
|
|||
}
|
||||
|
||||
// Create push notification payload struct.
|
||||
pushNotification := &apimodel.PushNotification{
|
||||
pushNotification := &apimodel.WebPushNotification{
|
||||
NotificationID: apiNotification.ID,
|
||||
NotificationType: apiNotification.Type,
|
||||
Icon: apiNotification.Account.Avatar,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue