diff --git a/ReplayBrowser/Helpers/ReplayHelper.cs b/ReplayBrowser/Helpers/ReplayHelper.cs index 6cadc18..f3f074e 100644 --- a/ReplayBrowser/Helpers/ReplayHelper.cs +++ b/ReplayBrowser/Helpers/ReplayHelper.cs @@ -14,7 +14,7 @@ namespace ReplayBrowser.Helpers; public class ReplayHelper { - static readonly string REDACTION_MESSAGE = "The account you are trying to search for is private or deleted. This might happen for various reasons as chosen by the account owner or the site administrative decision"; + const string REDACTION_MESSAGE = "The account you are trying to search for is private or deleted. This might happen for various reasons as chosen by the account owner or the site administrative decision"; private readonly IMemoryCache _cache; private readonly ReplayDbContext _context; @@ -306,7 +306,7 @@ public static void CheckAccountAccess(Account? caller, Account? found) return; // Is there any redaction to worry about? - if (!found.Settings.RedactInformation && !found.Protected) + if (!found.Settings.RedactInformation) return; // Ah shit diff --git a/ReplayBrowser/Pages/Search.razor b/ReplayBrowser/Pages/Search.razor index 77d2a49..93dcd1d 100644 --- a/ReplayBrowser/Pages/Search.razor +++ b/ReplayBrowser/Pages/Search.razor @@ -233,7 +233,6 @@ ErrorMessage = "Invalid search query"; ErrorDetails = "No search items found"; stopWatch.Stop(); - NavigationManager.NavigateTo("/"); return; } diff --git a/ReplayBrowser/Pages/Shared/SearchBar.razor b/ReplayBrowser/Pages/Shared/SearchBar.razor index 451c599..479ee19 100644 --- a/ReplayBrowser/Pages/Shared/SearchBar.razor +++ b/ReplayBrowser/Pages/Shared/SearchBar.razor @@ -49,7 +49,7 @@