[backend/federation] Rendered featured collections should only contain lite note objects (ISH-262)

This commit is contained in:
Laura Hausmann 2024-04-16 18:06:46 +02:00
parent 0fc834693a
commit 3fad9632c7
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -80,7 +80,7 @@ public class ActivityPubController(
.Take(10)
.ToListAsync();
var rendered = await pins.Select(p => noteRenderer.RenderAsync(p)).AwaitAllNoConcurrencyAsync();
var rendered = pins.Select(noteRenderer.RenderLite).ToList();
var res = new ASOrderedCollection
{
Id = $"{user.GetPublicUri(config.Value)}/collections/featured",