From 0981c51fb954590d0a8187a21cf6fcc626204096 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 23 Feb 2023 01:03:25 +0200 Subject: [PATCH] Fix nick fallback --- DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs b/DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs index 681115c..63b1266 100644 --- a/DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs +++ b/DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs @@ -203,7 +203,7 @@ internal partial class HtmlMarkdownVisitor : MarkdownVisitor var member = mention.TargetId?.Pipe(_context.TryGetMember); var fullName = member?.User.FullName ?? "Unknown"; - var nick = member?.Nick ?? "Unknown"; + var nick = member?.Nick ?? member?.User.Name ?? "Unknown"; _buffer.Append( // language=HTML