fix: 공유 미리보기가 깨지던 오류 수정
This commit is contained in:
1 parent
048a8f36a8
commit
a727d4f1ac
5 files changed
+95
-8
No files matched your search
@@ -65,6 +65,7 @@ from app.video.services.share_page import (
|
||||
build_video_share_html,
|
||||
get_video_share_data,
|
||||
resolve_frontend_base_url,
|
||||
resolve_share_url,
|
||||
)
|
||||
|
||||
|
||||
@@ -1106,7 +1107,11 @@ async def get_video_share_page(
|
||||
if share_data is None:
|
||||
raise HTTPException(status_code=404, detail="공유 가능한 영상을 찾을 수 없습니다.")
|
||||
|
||||
share_url = str(request.url).split("?", maxsplit=1)[0]
|
||||
share_url = resolve_share_url(
|
||||
request.headers,
|
||||
str(request.url).split("?", maxsplit=1)[0],
|
||||
prj_settings.SHARE_API_BASE_URL,
|
||||
)
|
||||
html = build_video_share_html(
|
||||
share_data,
|
||||
share_url=share_url,
|
||||
|
||||
Reference in new issue
Block a user