diff --git a/frontend/src/routes/category/[name]/+page.ts b/frontend/src/routes/category/[name]/+page.ts index a33ee99..c83a4df 100644 --- a/frontend/src/routes/category/[name]/+page.ts +++ b/frontend/src/routes/category/[name]/+page.ts @@ -3,10 +3,12 @@ import { getFeed } from '$lib/api'; const PAGE_SIZE = 15; +// Every category page (including "Local") filters by its category name — sources are +// assigned categories directly via checkboxes in the admin Sources tab, so a source +// tagged "Local" shows up here the same way one tagged "Tech" shows up on /category/tech. export const load: PageLoad = async ({ params, fetch }) => { const name = params.name; - const isLocal = name.toLowerCase() === 'local'; - const filters = isLocal ? { geo: 'philadelphia' } : { category: name }; + const filters = { category: name }; const initial = await getFeed({ ...filters, limit: PAGE_SIZE }, fetch); return { initial, filters, name, pageSize: PAGE_SIZE }; };