feat: 계절 이야기에 사진 연결 (띠·목록·상세·피드, CC BY 계열 출처 표기)

This commit is contained in:
minaChoi committed 2026-10-08 09:10:10 +09:00
1 parent e8382f450b
commit ba62e82f1b
15 files changed
+77 -21

No files matched your search

+4 -2
View File
@@ -362,7 +362,8 @@ class FeedService:
image=e.event.image_url, image_credit=image_credit(e.event)) for e in mix_kinds(events)[:4]],
top5=[_top(i) for i in items[:5]],
season=[
BandArticle(article_id=a.article_id, title=a.title, meta=f"{_CATEGORY_META[a.category]} · {a.read_minutes}분", icon=a.icon)
BandArticle(article_id=a.article_id, title=a.title, meta=f"{_CATEGORY_META[a.category]} · {a.read_minutes}분", icon=a.icon,
image=a.image_url, image_credit=a.image_credit)
for a in articles or [] if a.category == ArticleCategory.SEASON.value
],
),
@@ -450,7 +451,8 @@ class FeedService:
if t in (PostType.SEASON, PostType.TIP) and p.ref_id in c.articles:
a = c.articles[p.ref_id]
return PostData(**base, title=a.title, icon=a.icon, caption=" ".join(a.body[1:2]) or a.body[0],
slides=[RowsSlide(kind="rows", eyebrow=_CATEGORY_META[a.category], line=a.body[0], icon=a.icon)], share_messages=[a.title])
slides=[RowsSlide(kind="rows", eyebrow=_CATEGORY_META[a.category], line=a.body[0], icon=a.icon, image=a.image_url, image_credit=a.image_credit)],
share_messages=[a.title])
if t is PostType.EVENT:
soon = mix_kinds([e for e in c.events if e.event.start_date <= c.now.date() + timedelta(days=7) and e.event.end_date >= c.now.date()])
rank = p.index_rank or 1