🐛 Mis-use Sprint as Sprintf

This commit is contained in:
LittleSheep 2024-07-20 16:19:45 +08:00
parent fda9b7517c
commit 262bac2a15

View File

@ -138,7 +138,7 @@ func NotifyMessageEvent(members []models.ChannelMember, event models.Event) {
pendingUsers,
&proto.NotifyRequest{
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,
Avatar: &event.Sender.Account.Avatar,
Metadata: EncodeJSONBody(map[string]any{