chore: main 병합 — 단풍·띠 좋아요, 밀림 수정, 글 주제·사진 Blob, 애드센스

This commit is contained in:
minaChoi committed 2026-10-23 15:29:15 +09:00
commit e30f41de68
31 files changed
+831 -88

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ async def get_feed(
err, feed = await service.feed(region)
if err is not ErrorType.SUCCESS:
return Res_Feed(result=error_info(err))
pinned = [x for x in (feed.hero_post, feed.gak_post) if x is not None]
pinned = [x for x in (feed.hero_post, feed.gak_post, feed.foliage_post, feed.events_post, feed.season_post) if x is not None]
ids = [p.post_id for p in feed.posts] + [x.post_id for x in pinned]
counts = await reactions.counts(ids)
liked, saved = await reactions.marks(user, ids)
+4 -1
View File
@@ -137,7 +137,7 @@ class PostData(WebPacketProtocol):
class PostReaction(WebPacketProtocol):
"""포스트 틀이 아닌 카드(히어로·오늘의 각)에 붙는 좋아요·댓글."""
"""포스트 틀이 아닌 카드(히어로·오늘의 각·단풍 지도·띠)에 붙는 좋아요·댓글."""
post_id: int
like_count: int
comment_count: int
@@ -235,6 +235,9 @@ class Res_Feed(Res_WebPacketProtocol):
posts: list[PostData] = []
hero_post: Optional[PostReaction] = None
gak_post: Optional[PostReaction] = None
foliage_post: Optional[PostReaction] = None
events_post: Optional[PostReaction] = None
season_post: Optional[PostReaction] = None
bands: Optional[Bands] = None