🐛 Mis-use Sprint as Sprintf
This commit is contained in:
parent
fda9b7517c
commit
262bac2a15
@ -138,7 +138,7 @@ func NotifyMessageEvent(members []models.ChannelMember, event models.Event) {
|
|||||||
pendingUsers,
|
pendingUsers,
|
||||||
&proto.NotifyRequest{
|
&proto.NotifyRequest{
|
||||||
Topic: "messaging.message",
|
Topic: "messaging.message",
|
||||||
Title: fmt.Sprint("%s in %s", event.Sender.Account.Nick, event.Channel.DisplayText()),
|
Title: fmt.Sprintf("%s in %s", event.Sender.Account.Nick, event.Channel.DisplayText()),
|
||||||
Body: displayText,
|
Body: displayText,
|
||||||
Avatar: &event.Sender.Account.Avatar,
|
Avatar: &event.Sender.Account.Avatar,
|
||||||
Metadata: EncodeJSONBody(map[string]any{
|
Metadata: EncodeJSONBody(map[string]any{
|
||||||
|
Loading…
Reference in New Issue
Block a user