feat(ssulbox): SNS 제목·설명·태그를 ssul_content에 저장

영상과 같이 업로드·SEO 결과를 행에 남기고, 다음 요청부터는 DB 값을 쓴다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
skkimandCursor committed 2026-08-19 15:31:44 +09:00
1 parent fde48e8674
commit e47a97476d
9 files changed
+108 -36

No files matched your search

+5 -5
View File
@@ -89,6 +89,7 @@ class SocialUploadService:
video_id=body.video_id,
detail="영상이 아직 준비되지 않았습니다. 영상 생성이 완료된 후 시도해주세요.",
)
target = content
else:
target_col = SocialUpload.video_id
# video 에는 user_uuid 가 없다 — 소유권은 project 에 있으므로 조인한다.
@@ -113,13 +114,12 @@ class SocialUploadService:
video_id=body.video_id,
detail="영상이 아직 준비되지 않았습니다. 영상 생성이 완료된 후 시도해주세요.",
)
target = video
if body.content_type != "ssul" and sns_metadata_changed(
video, body.title, body.description, body.tags
):
apply_sns_metadata(video, body.title, body.description, body.tags)
if sns_metadata_changed(target, body.title, body.description, body.tags):
apply_sns_metadata(target, body.title, body.description, body.tags)
logger.info(
f"[UPLOAD_SERVICE] video SNS 메타데이터 갱신 - video_id: {body.video_id}"
f"[UPLOAD_SERVICE] SNS 메타데이터 갱신 - type: {body.content_type}, id: {body.video_id}"
)
# 2. 소셜 계정 조회 및 소유권 검증