summaryrefslogtreecommitdiff
path: root/Pages/Gallery.razor
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-25 13:07:32 +1000
committerJake Mannens <jake@asger.xyz>2025-08-20 00:48:42 +1000
commit4b3afdffb11cafde482fce1833a1a742b55605f4 (patch)
tree9932d487a227dbaab52f4539f746ca5eb74991c4 /Pages/Gallery.razor
parenta26e9b6a628cfd311b08e1c4d2bf612d9af9bb7c (diff)
Renamed UserStateService to UserService
Diffstat (limited to 'Pages/Gallery.razor')
-rw-r--r--Pages/Gallery.razor6
1 files changed, 3 insertions, 3 deletions
diff --git a/Pages/Gallery.razor b/Pages/Gallery.razor
index 7894fb7..41125fc 100644
--- a/Pages/Gallery.razor
+++ b/Pages/Gallery.razor
@@ -3,7 +3,7 @@
@inject IDbContextFactory<HBContext> dbFactory
@inject ITagService tagService
@inject ISearchService searchService
-@inject IUserStateService userState
+@inject IUserService userService
<PageTitle>@Title</PageTitle>
@@ -41,7 +41,7 @@
private Media[] Media;
protected override void OnInitialized() =>
- userState.ShowNsfwChanged += ShowNsfwChanged;
+ userService.ShowNsfwChanged += ShowNsfwChanged;
protected override void OnParametersSet() => LoadMedia();
@@ -64,7 +64,7 @@
.Where(m => m.IsIngest);
// Filter both NSFW AND ingest images if we're not showing NSFW
- if(!userState.ShowNsfw) {
+ if(!userService.ShowNsfw) {
var nsfwTags = tagService.TagsThatImply(HBContext.NsfwTag)
.Select(td => td.Guid)
.ToArray();