Browse Source

added auth field to modlog request

fix/modlog-auth-in-req
DashEightMate 10 months ago
parent
commit
5901f98dbe
  1. 5
      src/components/modlog.tsx

5
src/components/modlog.tsx

@ -20,6 +20,7 @@ import Button from './elements/Button';
import useSWR from 'swr';
import { Box, Input, Select } from 'theme-ui';
import { darken } from '@theme-ui/color';
import { UserService } from '../services';
const filterNamesUI = [
'Removing Posts',
@ -83,7 +84,9 @@ export function Modlog(props) {
communityId ? `&community_id=${communityId}` : ''
}&limit=${fetchLimit}&action_filter=${generateNumFromBits(filtersOn)}${
selectedMod == 0 ? '' : `&mod_user_id=${selectedMod}`
}${selectedUser == 0 ? '' : `&other_user_id=${selectedUser}`}`,
}${selectedUser == 0 ? '' : `&other_user_id=${selectedUser}`}${
UserService.Instance.user ? `&auth=${UserService.Instance.auth}` : ''
}`,
fetcher
);
if (modlogQuery.error) {

Loading…
Cancel
Save