userinfo: use username as ghost identifier instead of user id

This is more correct.
This commit is contained in:
Skip R
2026-02-06 15:30:32 -08:00
parent d8ca44ecd9
commit 7cfa17023b

View File

@@ -64,7 +64,7 @@ func (d *DiscordClient) GetUserInfo(ctx context.Context, ghost *bridgev2.Ghost)
return &bridgev2.UserInfo{ return &bridgev2.UserInfo{
// FIXME clear this for webhooks (stash in ghost metadata) // FIXME clear this for webhooks (stash in ghost metadata)
Identifiers: []string{fmt.Sprintf("discord:%s", discordUser.ID)}, Identifiers: []string{fmt.Sprintf("discord:%s", discordUser.String())},
Name: ptr.Ptr(discordUser.DisplayName()), Name: ptr.Ptr(discordUser.DisplayName()),
Avatar: d.makeUserAvatar(discordUser), Avatar: d.makeUserAvatar(discordUser),
IsBot: &discordUser.Bot, IsBot: &discordUser.Bot,