userinfo: use username as ghost identifier instead of user id
This is more correct.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user