diff --git a/Iceshrimp.Frontend/Pages/Moderation/CustomEmojis.razor b/Iceshrimp.Frontend/Pages/Moderation/CustomEmojis.razor index 08adc437..7f10b294 100644 --- a/Iceshrimp.Frontend/Pages/Moderation/CustomEmojis.razor +++ b/Iceshrimp.Frontend/Pages/Moderation/CustomEmojis.razor @@ -20,7 +20,7 @@ @Loc["Custom Emojis"] - @if (State is State.Empty or State.Loaded && Source == "local") + @if (State is State.Empty or State.Loaded) { @@ -43,15 +43,6 @@ } @if (State is State.Loaded) @@ -62,7 +53,7 @@
@foreach (var emoji in category.Value) { - + }
} @@ -88,12 +79,9 @@ private List Emojis { get; set; } = []; private Dictionary> Categories { get; set; } = new(); private string EmojiFilter { get; set; } = ""; - private string HostFilter { get; set; } = ""; - private string Source { get; set; } = "local"; private State State { get; set; } private InputFile UploadInput { get; set; } = null!; private IBrowserFile UploadFile { get; set; } = null!; - private string UploadName { get; set; } = ""; private InputFile ImportInput { get; set; } = null!; private IBrowserFile ImportFile { get; set; } = null!; private IJSObjectReference _module = null!; @@ -105,7 +93,6 @@ .OrderBy(p => p.Name) .ThenBy(p => p.Id) .GroupBy(p => p.Category) - .Where(p => Source == "local" || (Source == "remote" && (p.Key?.Contains(HostFilter) ?? false))) .OrderBy(p => string.IsNullOrEmpty(p.Key)) .ThenBy(p => p.Key) .ToDictionary(p => p.Key ?? "Other", p => p.ToList()); @@ -115,16 +102,7 @@ { State = State.Loading; - if (Source == "remote") - { - //TODO: impolement proper pagination - var res = await Api.Emoji.GetRemoteEmojiAsync(new PaginationQuery()); - Emojis = res.Data; - } - else - { - Emojis = await Api.Emoji.GetAllEmojiAsync(); - } + Emojis = await Api.Emoji.GetAllEmojiAsync(); if (Emojis.Count == 0) {