diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-26 03:55:15 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-26 03:55:15 -0700 |
commit | d6147f3fc99151687e08d40c91555e65578515d8 (patch) | |
tree | 5032556f63c299954fe1b1f621326e9af481387e /system/db/content.go | |
parent | e8945192276de251022bd4732178cd0143f41f78 (diff) |
adding capability to accept external content type submissions
Diffstat (limited to 'system/db/content.go')
-rw-r--r-- | system/db/content.go | 5 |
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 } |