Admin polish: stability fixes, schema security, consistent UI + sidebar #1

Merged
reudy merged 21 commits from session/polish into main 2026-10-07 16:30:40 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit cd66d61f6f - Show all commits

View file

@ -16,7 +16,7 @@ export const load: PageServerLoad = async ({ locals }) => {
try { try {
const page = await locals.pb const page = await locals.pb
.collection('pages') .collection('pages')
.getFirstListItem(`slug = "${homeSlug}" && published = true`); .getFirstListItem(locals.pb.filter('slug = {:slug} && published = true', { slug: homeSlug }));
let calendarEvents: CalendarEventRecord[] = []; let calendarEvents: CalendarEventRecord[] = [];
if (hasUpcomingCalendarBlock(page.blocks || [])) { if (hasUpcomingCalendarBlock(page.blocks || [])) {
const range = getUpcomingCalendarRange(); const range = getUpcomingCalendarRange();

View file

@ -7,7 +7,7 @@ export const load: PageServerLoad = async ({ params, locals }) => {
try { try {
const page = await locals.pb const page = await locals.pb
.collection('pages') .collection('pages')
.getFirstListItem(`slug = "${params.slug}" && published = true`); .getFirstListItem(locals.pb.filter('slug = {:slug} && published = true', { slug: params.slug }));
let calendarEvents: CalendarEventRecord[] = []; let calendarEvents: CalendarEventRecord[] = [];
if (hasUpcomingCalendarBlock(page.blocks || [])) { if (hasUpcomingCalendarBlock(page.blocks || [])) {
const range = getUpcomingCalendarRange(); const range = getUpcomingCalendarRange();