From ee46dc72030f2861b0e1a99ee297509dba514b40 Mon Sep 17 00:00:00 2001 From: diamondburned <diamond@libdb.so> Date: Mon, 26 Aug 2024 23:10:53 +0700 Subject: [PATCH] Remove author ID from message tooltip --- internal/messages/message.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/messages/message.go b/internal/messages/message.go index dd0b02b..e2ecead 100644 --- a/internal/messages/message.go +++ b/internal/messages/message.go @@ -359,8 +359,8 @@ func (m *cozyMessage) Update(message *gateway.MessageCreateEvent) { m.updateAuthor(message) tooltip := fmt.Sprintf( - "<b>%s</b> (%s)\n%s", - html.EscapeString(message.Author.Tag()), message.Author.ID, + "<b>%s</b>\n%s", + html.EscapeString(message.Author.Tag()), html.EscapeString(locale.Time(message.Timestamp.Time(), true)), )