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