[backend/federation] Fix typo

This commit is contained in:
Laura Hausmann 2024-02-19 01:08:25 +01:00
parent 72d13c19d8
commit 7c55f2016b
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -52,7 +52,7 @@ public class ActivityPubController : Controller
{
var user = await db.Users.IncludeCommonProperties().FirstOrDefaultAsync(p => p.Id == id);
if (user == null) return NotFound();
if (user.Host == null) return user.Uri != null ? RedirectPermanent(user.Uri) : NotFound();
if (user.Host != null) return user.Uri != null ? RedirectPermanent(user.Uri) : NotFound();
var rendered = await userRenderer.RenderAsync(user);
var compacted = LdHelpers.Compact(rendered);
return Ok(compacted);