From 262bac2a154bc80ace55a16e4c5ee9c7e62d8092 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 20 Jul 2024 16:19:45 +0800 Subject: [PATCH] :bug: Mis-use Sprint as Sprintf --- pkg/internal/services/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/events.go b/pkg/internal/services/events.go index cf813ab..305a9f6 100644 --- a/pkg/internal/services/events.go +++ b/pkg/internal/services/events.go @@ -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{