fix(media): 회원 썸네일을 관리자 미디어 폴더에서 다시 노출

회원 썸네일 경로 필터를 제거해 관리자 미디어의 회원/썸네일 카테고리에서 업로드 결과를 확인할 수 있게 하고, 설정 프로필 썸네일 UI 개편 및 문서 버전 업데이트를 함께 반영한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-11 17:40:32 +09:00
parent 080f76799a
commit b18aca4dcc
7 changed files with 63 additions and 53 deletions

View File

@@ -252,13 +252,12 @@ const getMediaUsage = (url, posts, pages) => {
*/
export const listMediaItems = async () => {
const items = await readMediaDirectory(uploadRoot)
const publicAdminItems = items.filter((item) => !item.url.startsWith('/uploads/members/avatars/'))
const metadataMap = await getMediaMetadataMap()
const [posts, pages] = await Promise.all([
listAdminPosts(),
listPages()
])
const itemsWithUsage = publicAdminItems.map((item) => ({
const itemsWithUsage = items.map((item) => ({
...item,
category: metadataMap[item.url]?.category || item.category,
usage: getMediaUsage(item.url, posts, pages)