fixed some backend issues

This commit is contained in:
nvrl committed 2026-04-26 23:02:13 +02:00
1 parent 466d0a0f9f
commit 2b2b4cf48f
13 files changed
+6801 -63

No files matched your search

+3 -1
View File
@@ -35,6 +35,7 @@ import {
import { useNotificationsQuery } from '../api/queries/useNotifications';
import { useCreateReply } from '../api/mutations/useRatingMutations';
import { useTitle } from '../hooks/useTitle';
import { useAuth } from '../hooks/useAuth';
import RichText from '../components/RichText';
import { formatDate } from '../utils/date';
import { useTranslation } from 'react-i18next';
@@ -82,7 +83,8 @@ const CommunityFeed: React.FC<CommunityFeedProps> = ({ adminMode }) => {
const [replyInputs, setReplyInputs] = useState<Record<number, string>>({});
const [expandedReplies, setExpandedReplies] = useState<Record<number, boolean>>({});
const isAuthed = !!localStorage.getItem('access');
const { user } = useAuth();
const isAuthed = !!user;
const { data: feed, isLoading: feedLoading, error: feedError } = useCommunityFeed(page);
const { data: following = [] } = useFollowingList();
const { data: notificationsAll = [] } = useNotificationsQuery(isAuthed);