mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat: add p/mod feed for all subs the user moderates
This commit is contained in:
@@ -42,6 +42,10 @@ export const isHomeView = (pathname: string): boolean => {
|
||||
return pathname === '/';
|
||||
};
|
||||
|
||||
export const isModView = (pathname: string): boolean => {
|
||||
return pathname === `/p/mod` || pathname.startsWith(`/p/mod/`);
|
||||
};
|
||||
|
||||
export const isPendingPostView = (pathname: string, params: ParamsType): boolean => {
|
||||
return pathname === `/profile/${params.accountCommentIndex}` || pathname === `/profile/${params.accountCommentIndex}/settings`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user