diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8b36c13..6eb7413 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,15 +4,8 @@
-
-
-
-
-
-
-
-
-
+
+
@@ -126,6 +119,14 @@
+
+
+
+
+
+
+
+
-
@@ -175,7 +175,8 @@
-
+
+
true
diff --git a/pkg/internal/services/statuses.go b/pkg/internal/services/statuses.go
index 409895b..cc63941 100644
--- a/pkg/internal/services/statuses.go
+++ b/pkg/internal/services/statuses.go
@@ -20,7 +20,11 @@ func NewStatus(user models.Account, status models.Status) (models.Status, error)
func GetStatus(uid uint) (models.Status, error) {
if status, ok := statusCache[uid]; ok {
- return status, nil
+ if status.ClearAt != nil && status.ClearAt.Before(time.Now()) {
+ delete(statusCache, uid)
+ } else {
+ return status, nil
+ }
}
var status models.Status
if err := database.C.