diff --git a/Iceshrimp.Backend/Controllers/Web/SearchController.cs b/Iceshrimp.Backend/Controllers/Web/SearchController.cs index a318d06d..f63b43c6 100644 --- a/Iceshrimp.Backend/Controllers/Web/SearchController.cs +++ b/Iceshrimp.Backend/Controllers/Web/SearchController.cs @@ -88,9 +88,8 @@ public class SearchController( if (target.StartsWith('@') || target.StartsWith(userPrefixAlt)) { - var hit = await userResolver.ResolveOrNullAsync(target, SearchFlags); - if (hit != null) return new RedirectResponse { TargetUrl = $"/users/{hit.Id}" }; - throw GracefulException.NotFound("No result found"); + var hit = await userResolver.ResolveAsync(target, SearchFlags); + return new RedirectResponse { TargetUrl = $"/users/{hit.Id}" }; } if (target.StartsWith("https://"))