Skip to content

Commit f485950

Browse files
committed
refactor: update filters
1 parent d51b15d commit f485950

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎src/components/communities/community-sidebar.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ export function SmallScreenSidebar({
5959
});
6060
const community = useCommunityFromStore(communityName);
6161
const flairs = useFlairs(community?.flairs?.map((f) => f.id));
62-
const getCachePrefixer = useAuth((s) => s.getCachePrefixer);
63-
const data = useCommunitiesStore(
64-
(s) => s.communities[getCachePrefixer()(communityName)]?.data,
65-
);
62+
const data = useCommunityFromStore(communityName);
6663
const communityView = data?.communityView;
6764
const isBlocked = useIsCommunityBlocked(communityName);
6865

‎src/lib/filters/politics.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ export const filterPolitics: FilterFile = {
312312
{
313313
any: [
314314
{ title: true, op: "substring", pattern: "shoot up" },
315-
{ title: true, op: "word", pattern: "shooting" },
316-
{ title: true, op: "word", pattern: "shooter" },
315+
{ title: true, op: "substring", pattern: "shooting" },
316+
{ title: true, op: "substring", pattern: "shooter" },
317317
{
318318
title: true,
319319
op: "substring",

0 commit comments

Comments
 (0)