aboutsummaryrefslogtreecommitdiffstats
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/types/thread.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/worker/types/thread.go b/worker/types/thread.go
index a79a0b2d..42565964 100644
--- a/worker/types/thread.go
+++ b/worker/types/thread.go
@@ -146,6 +146,9 @@ func getMaxUID(thread *Thread) uint32 {
var Uid uint32
_ = thread.Walk(func(t *Thread, _ int, currentErr error) error {
+ if t.Deleted || t.Hidden > 0 {
+ return nil
+ }
if t.Uid > Uid {
Uid = t.Uid
}