parent
4b455e0fd8
commit
9a91312392
|
@ -105,6 +105,7 @@ func createFirebaseSubscriber(conf *config.Config) (subscriber, error) {
|
|||
}
|
||||
return func(m *message) error {
|
||||
_, err := msg.Send(context.Background(), &messaging.Message{
|
||||
Topic: m.Topic,
|
||||
Data: map[string]string{
|
||||
"id": m.ID,
|
||||
"time": fmt.Sprintf("%d", m.Time),
|
||||
|
@ -112,12 +113,6 @@ func createFirebaseSubscriber(conf *config.Config) (subscriber, error) {
|
|||
"topic": m.Topic,
|
||||
"message": m.Message,
|
||||
},
|
||||
Notification: &messaging.Notification{
|
||||
Title: m.Topic, // FIXME convert to ntfy.sh/$topic instead
|
||||
Body: m.Message,
|
||||
ImageURL: "",
|
||||
},
|
||||
Topic: m.Topic,
|
||||
})
|
||||
return err
|
||||
}, nil
|
||||
|
|
Loading…
Reference in New Issue