[backend/masto-client] Render quotes & quote/reply inaccessible indicators for notes with no text

This commit is contained in:
Laura Hausmann 2024-07-04 00:18:18 +02:00
parent d7f39ecdae
commit 566ae8adfd
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -95,9 +95,9 @@ public class NoteRenderer(
note.Renote == null && ((note.RenoteId != null && recurse > 0) || note.RenoteUri != null);
var content = data?.Source != true
? text != null
? await mfmConverter.ToHtmlAsync(text, mentionedUsers, note.UserHost, quoteUri, quoteInaccessible,
replyInaccessible)
? text != null || quoteUri != null || quoteInaccessible || replyInaccessible
? await mfmConverter.ToHtmlAsync(text ?? "", mentionedUsers, note.UserHost, quoteUri,
quoteInaccessible, replyInaccessible)
: ""
: null;