Commit 7c2d7e32 authored by zhanglu's avatar zhanglu

fix: 帖子点赞数

parent ca78dd36
...@@ -109,7 +109,7 @@ class TractateFormat(BaseFormat): ...@@ -109,7 +109,7 @@ class TractateFormat(BaseFormat):
"gm_url": gm_protocol.get_tractate_detail(info["tractate_id"]), "gm_url": gm_protocol.get_tractate_detail(info["tractate_id"]),
"content": gm_decode_html(info["title"] or info["content"]), "content": gm_decode_html(info["title"] or info["content"]),
"is_voted": info.get("is_voted", False), "is_voted": info.get("is_voted", False),
"vote_num": info.get("is_voted", 0), "vote_num": info.get("vote_amount", 0),
"reply_amount": info.get("reply_amount", 0), "reply_amount": info.get("reply_amount", 0),
"user": info["user"], "user": info["user"],
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment