[backend/federation] Also skip RE: in ASNoteSource for notes that are not polls

This commit is contained in:
Laura Hausmann 2024-05-02 00:03:41 +02:00
parent 2e0792ab73
commit be4e58b958
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -136,7 +136,7 @@ public class NoteRenderer(IOptions<Config.InstanceSection> 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.InstanceSection> 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,