[backend/masto-client] Only check filters for the root note

This commit is contained in:
Laura Hausmann 2024-04-05 17:11:03 +02:00
parent 36cf452b42
commit 01e640e8e5
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -26,10 +26,10 @@ public class NoteRenderer(
{
var uri = note.Uri ?? note.GetPublicUri(config.Value);
var renote = note is { Renote: not null, IsQuote: false } && recurse > 0
? await RenderAsync(note.Renote, user, filterContext, data, 0)
? await RenderAsync(note.Renote, user, null, data, 0)
: null;
var quote = note is { Renote: not null, IsQuote: true } && recurse > 0
? await RenderAsync(note.Renote, user, filterContext, data, --recurse)
? await RenderAsync(note.Renote, user, null, data, --recurse)
: null;
var text = note.Text;
string? quoteUri = null;