v1.10.88 품질·보안 개선과 미디어 카탈로그 database 전환을 반영한다.

세션·로그인 제한, ZIP/업로드 스트리밍, CSP 최소 강제와 Report-Only, Playwright 격리 검증을 추가하고 미디어 목록을 reconcile 후 database 모드로 고정한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-22 11:05:40 +09:00
parent 9bc0f0a90e
commit de767095ba
116 changed files with 8128 additions and 2933 deletions

View File

@@ -1,7 +1,7 @@
import { getQuery } from 'h3'
import { listPosts } from '../repositories/content-repository'
import { canAccessMembershipContent } from '../repositories/member-repository'
import { getMemberSession } from '../utils/member-auth'
import { getVerifiedMemberSession } from '../utils/member-auth'
import {
DEFAULT_POST_LIST_PAGE_SIZE,
normalizeDisplayCount,
@@ -14,14 +14,12 @@ import {
* @returns {Promise<Array>} 게시물 목록
*/
export default defineEventHandler(async (event) => {
const session = getMemberSession(event)
const session = await getVerifiedMemberSession(event)
const includeMembership = await canAccessMembershipContent(session?.userId)
const query = getQuery(event)
const page = normalizeListPage(query.page)
const limit = query.limit
? normalizeDisplayCount(query.limit, DEFAULT_POST_LIST_PAGE_SIZE)
: null
const offset = limit ? (page - 1) * limit : 0
const limit = normalizeDisplayCount(query.limit, DEFAULT_POST_LIST_PAGE_SIZE)
const offset = (page - 1) * limit
const paginated = query.paginated === '1'
const result = await listPosts({
@@ -38,7 +36,7 @@ export default defineEventHandler(async (event) => {
}
const total = Number(result.total || 0)
const pageSize = limit || DEFAULT_POST_LIST_PAGE_SIZE
const pageSize = limit
return {
items: result.items,