From 6871813819995c36d0b7f083c1f4b730a920aada Mon Sep 17 00:00:00 2001 From: Yangshun Date: Wed, 20 Aug 2025 08:45:29 +0800 Subject: [PATCH] [redditmon] inbox: tweak subreddit filter UI --- apps/redditmon/src/components/posts/PostList/PostList.tsx | 2 +- apps/redditmon/src/components/posts/SubredditFilter.tsx | 1 - apps/redditmon/src/server/routers/project.ts | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/redditmon/src/components/posts/PostList/PostList.tsx b/apps/redditmon/src/components/posts/PostList/PostList.tsx index 95d6f2d0a..8a625bee2 100644 --- a/apps/redditmon/src/components/posts/PostList/PostList.tsx +++ b/apps/redditmon/src/components/posts/PostList/PostList.tsx @@ -123,7 +123,7 @@ export default function PostList() { )} -
+
{ + // TODO: This fetch is not secure, anyone with the slug can fetch it! return await prisma.project.findUnique({ include: { subredditKeywords: true, @@ -129,7 +130,7 @@ export const projectRouter = router({ if (response.status === 429) { throw new TRPCError({ code: 'INTERNAL_SERVER_ERROR', - message: `Failed to fetch subreddits. Reddit API rate limit exceeded! Please try again some time.`, + message: `Failed to fetch subreddits. Reddit API rate limit exceeded! Please try again after some time.`, }); } if (!response.ok) {