fix typo error
This commit is contained in:
@@ -28,6 +28,10 @@ const (
|
||||
ProfileTabQuestion = db.FeatureQuestion
|
||||
ProfileTabChat = db.FeatureChat
|
||||
ProfileTabVote = db.FeatureVote
|
||||
// ProfileTabSecurity 与受控功能无关:聚合「内容防护」类设置
|
||||
// (防骚扰、屏蔽词、审核严格度、页面访问密码、提问密码),
|
||||
// 这些设置横跨多个功能,原先散落在提问/私聊/投票面板(屏蔽词与审核严格度还被重复渲染 3 份)。
|
||||
ProfileTabSecurity = "security"
|
||||
)
|
||||
|
||||
// profileURLWithTab 账号设置页 + 指定面板的回跳地址,用于保存后停留在原面板。
|
||||
@@ -38,7 +42,7 @@ func profileURLWithTab(tab string) string {
|
||||
// ProfileTab 归一化账号设置页的 tab 参数,非法值回落到用户设置面板。
|
||||
func ProfileTab(tab string) string {
|
||||
switch tab {
|
||||
case ProfileTabQuestion, ProfileTabChat, ProfileTabVote:
|
||||
case ProfileTabQuestion, ProfileTabChat, ProfileTabVote, ProfileTabSecurity:
|
||||
return tab
|
||||
}
|
||||
return ProfileTabAccount
|
||||
|
||||
Reference in New Issue
Block a user