From c191f20237a37a9071621903e81b285e2477eab3 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Tue, 4 Jun 2024 19:52:58 +0200 Subject: [PATCH] [backend/federation] Fix typo --- .../Controllers/Federation/ActivityPubController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Controllers/Federation/ActivityPubController.cs b/Iceshrimp.Backend/Controllers/Federation/ActivityPubController.cs index da8f64c9..359f9c6d 100644 --- a/Iceshrimp.Backend/Controllers/Federation/ActivityPubController.cs +++ b/Iceshrimp.Backend/Controllers/Federation/ActivityPubController.cs @@ -41,7 +41,7 @@ public class ActivityPubController( .EnsureVisibleFor(actor) .FirstOrDefaultAsync(p => p.Id == id); 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")); var rendered = await noteRenderer.RenderAsync(note); var compacted = rendered.Compact();