feat: 포스트를 만들 때 날씨각 캐릭터(해님·구름·달님) 댓글 1~2개 — '날씨각' 표시, 신고·차단 메뉴 없음, 이미 만든 날은 scripts/fill_bot_comments.py

This commit is contained in:
minaChoi committed 2026-10-27 13:14:30 +09:00
1 parent d32e24a5ab
commit 98b5c0cbe3
19 files changed
+864 -4

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ class CommentData(WebPacketProtocol):
like_count: int
liked: bool
mine: bool
official: bool = Field(default=False, description="날씨각 캐릭터(해님·구름·달님)가 단 댓글. 이름 옆에 '날씨각' 표시")
created_at: datetime
+1 -1
View File
@@ -21,7 +21,7 @@ router = APIRouter(prefix="/v1/reaction", tags=["reaction"])
def _comment(v: CommentView) -> CommentData:
c = v.comment
return CommentData(comment_id=c.comment_id, nickname=v.nickname, character=v.character, color=v.color, mood=v.mood, body=c.body, like_count=c.like_count, liked=v.liked, mine=v.mine, created_at=c.created_at.astimezone(KST))
return CommentData(comment_id=c.comment_id, nickname=v.nickname, character=v.character, color=v.color, mood=v.mood, body=c.body, like_count=c.like_count, liked=v.liked, mine=v.mine, official=v.official, created_at=c.created_at.astimezone(KST))
async def _like(post_id: int, who: Liker, on: bool, service: ReactionService) -> Res_PostLike: