Skip to content

Commit

Permalink
feat: change sensitive texts
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Nov 10, 2023
1 parent e4bb650 commit 309726f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apis/floor/schemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func (s *SensitiveFloorResponse) FromModel(floor *models.Floor) *SensitiveFloorR
s.UpdatedAt = floor.UpdatedAt
s.Content = floor.Content
s.Modified = floor.Modified
s.IsActualSensitive = floor.IsActualSensitive
s.HoleID = floor.HoleID
return s
}
Expand Down
2 changes: 1 addition & 1 deletion models/floor.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (floor *Floor) SetDefaults() {
}

if floor.IsSensitive == true && (floor.IsActualSensitive == nil || *floor.IsActualSensitive == true) {
floor.Content = "此内容正在审核中"
floor.Content = "该内容被猫猫吃掉了"
}
}

Expand Down

0 comments on commit 309726f

Please sign in to comment.