fix: 修复关注按钮 CSRF 403 + 缺少样式 + IncrCount SQL 错误

- 修复 CSRF 403:移除 space/index.html 中手动设置 X-CSRF-Token 头(与 common.js 自动注入冲突导致 token 重复)
- 修复按钮无样式:header.html 新增 ExtraCSS2 支持,space 页面加载 follow.css
- 修复 IncrCount SQL 错误:follow_repo.go 中 users 表列名修正 id → uid
This commit is contained in:
2026-06-01 20:16:51 +08:00
parent ae98d33edf
commit bab8e47d63
4 changed files with 6 additions and 5 deletions

View File

@ -99,5 +99,6 @@ func (ctrl *SpaceController) ShowSpace(c *gin.Context) {
"NextPage": nextPage,
"IsOwnSpace": isOwnSpace,
"ExtraCSS": "/static/css/space.css",
"ExtraCSS2": "/static/css/follow.css",
}))
}