This patch needs to be inserted after line 1122 (end of timeline.map loop) in src/app/admin/page.tsx: {/* Timeline Contributions (from visitors) */}
Keine Besucherbeiträge.
) : ( timelineContributions .filter(c => c.type === 'timeline') .sort((a, b) => { if (a.status === 'flagged' && b.status !== 'flagged') return -1 if (a.status !== 'flagged' && b.status === 'flagged') return 1 if (a.status === 'pending' && b.status !== 'pending') return -1 if (a.status !== 'pending' && b.status === 'pending') return 1 return new Date(b.created_at).getTime() - new Date(a.created_at).getTime() }) .map((contribution) => { const photos = contribution.media_filenames ? contribution.media_filenames.split(',') : [] return (