Skip to content

Commit

Permalink
feat: SendSensitive when create hole and modify floor
Browse files Browse the repository at this point in the history
  • Loading branch information
ppolariss committed Aug 16, 2024
1 parent ed6f015 commit 32a7df5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apis/floor/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ func ModifyFloor(c *fiber.Ctx) error {
})
} else {
go FloorDelete(floorID)
if floor.IsSensitive {
floor.SendSensitive(tx)
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion models/hole.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ func (hole *Hole) Create(tx *gorm.DB, user *User, tagNames []string, c *fiber.Ct
Content: firstFloor.Content,
})
} else {
firstFloor.Content = ""
firstFloor.SendSensitive(tx)
// firstFloor.Content = ""
}

hole.HoleHook()
Expand Down

0 comments on commit 32a7df5

Please sign in to comment.