wellknown optimisation
This commit is contained in:
parent
5ac5555bf6
commit
a6680df03e
1 changed files with 23 additions and 19 deletions
|
@ -201,6 +201,9 @@ namespace BirdsiteLive.Controllers
|
|||
if (!string.IsNullOrWhiteSpace(domain) && domain != _settings.Domain)
|
||||
return NotFound();
|
||||
|
||||
var user = await _twitterUserDal.GetTwitterUserAsync(name);
|
||||
if (user is null)
|
||||
{
|
||||
try
|
||||
{
|
||||
await _twitterUserService.GetUserAsync(name);
|
||||
|
@ -222,6 +225,7 @@ namespace BirdsiteLive.Controllers
|
|||
_logger.LogError(e, "Exception getting {Name}", name);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
var actorUrl = UrlFactory.GetActorUrl(_settings.Domain, name);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue