[backend/masto-client] Send empty string content for notes without text
This commit is contained in:
parent
acea67a298
commit
28fa7eb5de
1 changed files with 5 additions and 3 deletions
|
@ -80,9 +80,11 @@ public class NoteRenderer(
|
|||
var quoteInaccessible =
|
||||
note.Renote == null && ((note.RenoteId != null && recurse > 0) || note.RenoteUri != null);
|
||||
|
||||
var content = text != null && data?.Source != true
|
||||
? await mfmConverter.ToHtmlAsync(text, mentionedUsers, note.UserHost, quoteUri, quoteInaccessible,
|
||||
replyInaccessible)
|
||||
var content = data?.Source != true
|
||||
? text != null
|
||||
? await mfmConverter.ToHtmlAsync(text, mentionedUsers, note.UserHost, quoteUri, quoteInaccessible,
|
||||
replyInaccessible)
|
||||
: ""
|
||||
: null;
|
||||
|
||||
var account = data?.Accounts?.FirstOrDefault(p => p.Id == note.UserId) ??
|
||||
|
|
Loading…
Add table
Reference in a new issue