feat: 단풍 지도·이번 주 행사 띠·계절 이야기 띠에 좋아요·댓글(서버 포스트 자리 18·19·20), 히어로 아래 글자 칸 높이를 미리 잡아 오늘의 각부터 피드가 밀려 내려가던 문제 수정
This commit is contained in:
1 parent
eb84a72c2f
commit
03e54ad552
9 files changed
+60
-25
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user