feat: 단풍 지도·이번 주 행사 띠·계절 이야기 띠에 좋아요·댓글(서버 포스트 자리 18·19·20), 히어로 아래 글자 칸 높이를 미리 잡아 오늘의 각부터 피드가 밀려 내려가던 문제 수정

This commit is contained in:
minaChoi committed 2026-10-23 14:53:59 +09:00
1 parent eb84a72c2f
commit 03e54ad552
9 files changed
+60 -25

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