From 6643d31b1a6a1b5dae3161d1d667671e75b390eb Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 20 Jul 2024 15:14:50 +0800 Subject: [PATCH] :sparkles: Show invisible is enabled in api --- pkg/internal/server/api/statuses_api.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/internal/server/api/statuses_api.go b/pkg/internal/server/api/statuses_api.go index 83ab87b..9135268 100644 --- a/pkg/internal/server/api/statuses_api.go +++ b/pkg/internal/server/api/statuses_api.go @@ -2,13 +2,14 @@ package api import ( "fmt" + "time" + "git.solsynth.dev/hydrogen/passport/pkg/internal/database" "git.solsynth.dev/hydrogen/passport/pkg/internal/models" "git.solsynth.dev/hydrogen/passport/pkg/internal/server/exts" "git.solsynth.dev/hydrogen/passport/pkg/internal/services" "github.com/gofiber/fiber/v2" "github.com/samber/lo" - "time" ) func getStatus(c *fiber.Ctx) error { @@ -25,9 +26,6 @@ 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,