[backend/federation] Fix typo
This commit is contained in:
parent
faa90477bc
commit
c191f20237
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue