diff --git a/public/js/dashboard.js b/public/js/dashboard.js index a328d48..1bf8159 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -50,13 +50,18 @@ function renderActivity(activity) { `).join(''); } +function dashThumb(p) { + if (typeof p === 'string' && p.startsWith('/uploads/')) return `${API}/uploads/thumb/${p.slice('/uploads/'.length)}`; + return thumbSrc(p); +} + function renderRecent(rows) { const el = document.getElementById('recentList'); if (!rows.length) { el.innerHTML = '