From be4e58b958f8c475de59c1224e7783a73a427b92 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 2 May 2024 00:03:41 +0200 Subject: [PATCH] [backend/federation] Also skip RE: in ASNoteSource for notes that are not polls --- .../Core/Federation/ActivityPub/NoteRenderer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Iceshrimp.Backend/Core/Federation/ActivityPub/NoteRenderer.cs b/Iceshrimp.Backend/Core/Federation/ActivityPub/NoteRenderer.cs index 1499138b..8fea9e12 100644 --- a/Iceshrimp.Backend/Core/Federation/ActivityPub/NoteRenderer.cs +++ b/Iceshrimp.Backend/Core/Federation/ActivityPub/NoteRenderer.cs @@ -136,7 +136,7 @@ public class NoteRenderer(IOptions config, MfmConverter Attachments = attachments, Content = text != null ? await mfmConverter.ToHtmlAsync(text, mentions, note.UserHost) : null, Summary = note.Cw, - Source = text != null + Source = note.Text != null ? new ASNoteSource { Content = note.Text, MediaType = "text/x.misskeymarkdown" } : null, MkQuote = quoteUri, @@ -165,8 +165,8 @@ public class NoteRenderer(IOptions config, MfmConverter Attachments = attachments, Content = text != null ? await mfmConverter.ToHtmlAsync(text, mentions, note.UserHost) : null, Summary = note.Cw, - Source = text != null - ? new ASNoteSource { Content = text, MediaType = "text/x.misskeymarkdown" } + Source = note.Text != null + ? new ASNoteSource { Content = note.Text, MediaType = "text/x.misskeymarkdown" } : null, MkQuote = quoteUri, QuoteUri = quoteUri,