[backend/federation] Also skip RE: in ASNoteSource for notes that are not polls
This commit is contained in:
parent
2e0792ab73
commit
be4e58b958
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue