Skip to content

Commit

Permalink
feat: block loli content by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kurozenzen committed Feb 20, 2024
1 parent 8ed6b8c commit ec4d847
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lib/store/blocked-content-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import { ALL_BLOCKING_GROUPS } from '$lib/logic/blocking-group-data';
import { persistentWritable } from './persistent-store';
import { StoreKey } from './store-keys';

const getInitial = () =>
Object.fromEntries(ALL_BLOCKING_GROUPS.map((key) => [key, false])) as Record<
kurosearch.BlockingGroup,
boolean
>;
const getInitial = () => ({
Loli: true,
'Animal-Related': false,
'Non-Consentual': false,
Gore: false,
Scat: false
});

const createBlockedContentStore = () => {
const { subscribe, set } = persistentWritable(StoreKey.BlockedContent, getInitial());
Expand Down

0 comments on commit ec4d847

Please sign in to comment.