修复无板块时空态导航失效,去除发帖本地草稿,并种子默认板块。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 17:12:17 +08:00
parent 81f5d451bc
commit dd9e185847
8 changed files with 97 additions and 172 deletions

View File

@@ -44,6 +44,7 @@ func Setup(cfg *config.Config) (*gin.Engine, error) {
authSvc := service.NewAuthService(cfg.JWTSecret, filter, settingsSvc)
userSvc := service.NewUserService(filter, settingsSvc)
boardSvc := service.NewBoardService()
boardSvc.EnsureDefaultBoard()
postSvc := service.NewPostService(filter, settingsSvc)
commentSvc := service.NewCommentService(filter, settingsSvc)
messageSvc := service.NewMessageService(filter, settingsSvc)