Skip to content

Commit

Permalink
fix: 重复的发表成功通知
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jun 26, 2024
1 parent ad6a065 commit 049d01e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions campux/social/mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,3 @@ async def _publish_post(self, post_id: int):
# 通知到hash
await self.ap.mq.mark_post_published(post_id)

# 通知到群里
asyncio.create_task(self.ap.imbot.send_group_message(
self.ap.config.campux_review_qq_group_id,
f"已成功发表:#{post.id}"
))

0 comments on commit 049d01e

Please sign in to comment.