[backend/federation] Fix typo

This commit is contained in:
Laura Hausmann 2024-06-04 19:52:58 +02:00
parent faa90477bc
commit c191f20237
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -41,7 +41,7 @@ public class ActivityPubController(
.EnsureVisibleFor(actor) .EnsureVisibleFor(actor)
.FirstOrDefaultAsync(p => p.Id == id); .FirstOrDefaultAsync(p => p.Id == id);
if (note == null) return NotFound(); if (note == null) return NotFound();
if (note.User.Host == null) if (note.User.Host != null)
return RedirectPermanent(note.Uri ?? throw new Exception("Refusing to render remote note without uri")); return RedirectPermanent(note.Uri ?? throw new Exception("Refusing to render remote note without uri"));
var rendered = await noteRenderer.RenderAsync(note); var rendered = await noteRenderer.RenderAsync(note);
var compacted = rendered.Compact(); var compacted = rendered.Compact();