summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go
index 9ab1f89..c50706d 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -107,7 +107,10 @@ func insert(ns string, data url.Values) (int, error) {
return 0, err
}
- go SortContent(ns)
+ // since sorting can be expensive, limit sort to non-externally created posts
+ if !strings.Contains(ns, "_external") {
+ go SortContent(ns)
+ }
return effectedID, nil
}