fix:공유하기 기본이미지 + 내용
This commit is contained in:
1 parent
1507a0f859
commit
51ef659f16
2 files changed
+3
-4
No files matched your search
@@ -11,8 +11,7 @@ from app.home.models import Project
|
|||||||
from app.video.models import Video
|
from app.video.models import Video
|
||||||
|
|
||||||
FALLBACK_FRONTEND_URL = "https://ado2.o2osolution.ai"
|
FALLBACK_FRONTEND_URL = "https://ado2.o2osolution.ai"
|
||||||
DEFAULT_SHARE_IMAGE_PATH = "/assets/images/hero-background.png"
|
DEFAULT_SHARE_IMAGE_PATH = "/assets/images/ado2_image.png"
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, slots=True)
|
@dataclass(frozen=True, slots=True)
|
||||||
class VideoShareData:
|
class VideoShareData:
|
||||||
@@ -76,7 +75,7 @@ def build_video_share_html(
|
|||||||
region = _normalise_text(data.region, "")
|
region = _normalise_text(data.region, "")
|
||||||
title = f"{store_name} | ADO2"
|
title = f"{store_name} | ADO2"
|
||||||
description = (
|
description = (
|
||||||
f"{region} · ADO2 AI 마케팅 영상"
|
f"{region} · {store_name} 어떤 내용이 들어가야할지 정해야 합니다. 기존 영상 업로드시에 생성되는 내용을 사용하려면 db에 저장하고 업로드 할때마다 변경되는 부분을 전부 수정해야 합니다."
|
||||||
if region
|
if region
|
||||||
else "ADO2 AI 마케팅 영상"
|
else "ADO2 AI 마케팅 영상"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class ProjectSettings(BaseSettings):
|
|||||||
description="영상 공유 링크가 이동할 프론트엔드 공개 기준 URL",
|
description="영상 공유 링크가 이동할 프론트엔드 공개 기준 URL",
|
||||||
)
|
)
|
||||||
SHARE_DEFAULT_IMAGE_URL: str = Field(
|
SHARE_DEFAULT_IMAGE_URL: str = Field(
|
||||||
default="https://ado2.o2osolution.ai/assets/images/hero-background.png",
|
default="https://ado2.o2osolution.ai/assets/images/ado2_image.png",
|
||||||
description="포스터가 없는 영상 공유 시 사용할 절대 이미지 URL",
|
description="포스터가 없는 영상 공유 시 사용할 절대 이미지 URL",
|
||||||
)
|
)
|
||||||
DEBUG: bool = Field(default=True)
|
DEBUG: bool = Field(default=True)
|
||||||
|
|||||||
Reference in new issue
Block a user