summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/db/content.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go
index caa2af3..2d6e8ea 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -158,7 +158,11 @@ func DeleteContent(target string) error {
return err
}
- go SortContent(ns)
+ // exception to typical "run in goroutine" pattern:
+ // we want to have an updated admin view as soon as this is deleted, so
+ // in some cases, the delete and redirect is faster than the sort,
+ // thus still showing a deleted post in the admin view.
+ SortContent(ns)
return nil
}