🐛 Invisible status is visible to others

This commit is contained in:
2024-06-26 21:52:36 +08:00
parent 4281952c87
commit 203465f0bb
2 changed files with 7 additions and 4 deletions

View File

@ -25,6 +25,9 @@ func getStatus(c *fiber.Ctx) error {
disturbable := services.GetStatusDisturbable(user.ID) == nil
online := services.GetStatusOnline(user.ID) == nil
// Always set false to hide from others
status.IsInvisible = false
return c.JSON(fiber.Map{
"status": lo.Ternary(err == nil, &status, nil),
"last_seen_at": user.Profile.LastSeenAt,