From 83e3db3314423f08432c48ce78ea4316767983ba Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sat, 18 Jul 2026 20:00:40 +0900 Subject: [PATCH] #399 --- frontend/src/lib/postImportRows.ts | 5 ----- frontend/src/pages/posts/PostImportReviewPage.tsx | 8 -------- 2 files changed, 13 deletions(-) diff --git a/frontend/src/lib/postImportRows.ts b/frontend/src/lib/postImportRows.ts index 601f7cd..366a767 100644 --- a/frontend/src/lib/postImportRows.ts +++ b/frontend/src/lib/postImportRows.ts @@ -226,11 +226,6 @@ export const buildNextEditedRow = ( ? 'manual' : (editingRow.provenance[field] ?? 'automatic') }) - if (nextProvenance.duration === 'manual') - { - nextAttributes.videoMs = '' - nextProvenance.videoMs = 'manual' - } nextAttributes.tags = draft.tags if (isManualChange (editingRow.attributes.tags, draft.tags)) { diff --git a/frontend/src/pages/posts/PostImportReviewPage.tsx b/frontend/src/pages/posts/PostImportReviewPage.tsx index 882b5af..2d498db 100644 --- a/frontend/src/pages/posts/PostImportReviewPage.tsx +++ b/frontend/src/pages/posts/PostImportReviewPage.tsx @@ -108,7 +108,6 @@ const emptyAttributes = () => ({ originalCreatedFrom: '', originalCreatedBefore: '', duration: '', - videoMs: '', tags: '', parentPostIds: '' }) @@ -120,7 +119,6 @@ const emptyProvenance = () => ({ originalCreatedFrom: 'automatic', originalCreatedBefore: 'automatic', duration: 'automatic', - videoMs: 'automatic', tags: 'automatic', parentPostIds: 'automatic' }) as const @@ -294,7 +292,6 @@ const buildDryRunFormData = (row: PostImportRow): FormData => { formData.append ( 'original_created_before', String (row.attributes.originalCreatedBefore ?? '')) - formData.append ('video_ms', String (row.attributes.videoMs ?? '')) formData.append ('duration', String (row.attributes.duration ?? '')) if (!(hasThumbnailBaseValue (row.attributes.thumbnailBase)) && row.thumbnailFile != null) formData.append ('thumbnail', row.thumbnailFile) @@ -321,7 +318,6 @@ const mergeDryRunRow = ( originalCreatedFrom: result.originalCreatedFrom ?? '', originalCreatedBefore: result.originalCreatedBefore ?? '', duration: result.duration ?? '', - videoMs: result.videoMs ?? '', tags: result.tags ?? '', parentPostIds: String ( result.parentPostIds ?? currentRow.attributes.parentPostIds ?? '') }, @@ -355,7 +351,6 @@ const buildPreviewResetSnapshot = ( originalCreatedFrom: preview.originalCreatedFrom ?? '', originalCreatedBefore: preview.originalCreatedBefore ?? '', duration: preview.duration ?? '', - videoMs: preview.videoMs ?? '', tags: preview.tags ?? '', parentPostIds: String (preview.parentPostIds ?? '') }, displayTags: cloneDisplayTags (preview.displayTags), @@ -489,8 +484,6 @@ const mergePreviewRow = ( nextRow.tagSources.automatic = preview.tags ?? '' if (currentRow.provenance.parentPostIds !== 'manual') nextRow.attributes.parentPostIds = String (preview.parentPostIds ?? '') - if (currentRow.provenance.videoMs !== 'manual') - nextRow.attributes.videoMs = preview.videoMs ?? '' if (currentRow.provenance.duration !== 'manual') nextRow.attributes.duration = preview.duration ?? '' @@ -526,7 +519,6 @@ const buildBulkFormData = (rows: PostImportRow[]): FormData => { parent_post_ids: row.attributes.parentPostIds ?? '', original_created_from: row.attributes.originalCreatedFrom ?? '', original_created_before: row.attributes.originalCreatedBefore ?? '', - video_ms: row.attributes.videoMs ?? '', duration: row.attributes.duration ?? '' })))) rows.forEach ((row, index) => { if (!(hasThumbnailBaseValue (row.attributes.thumbnailBase)) && row.thumbnailFile != null)