summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-26 13:34:34 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-26 13:34:34 -0700
commitdbdd46e5477d8288970b564550616e0ba8fcd5e2 (patch)
treef1b2db18d851b2d4c26f1f54196815d449c30ced /system/db/content.go
parent4d0201d360620cf3d3af4eec2661b1ae6c914e1d (diff)
need to process string in case external suffix is found where it should not be
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/db/content.go b/system/db/content.go
index 089426e..39ab5c2 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -120,6 +120,7 @@ func insert(ns string, data url.Values) (int, error) {
func postToJSON(ns string, data url.Values) ([]byte, error) {
// find the content type and decode values into it
+ ns = strings.TrimSuffix(ns, "_external")
t, ok := content.Types[ns]
if !ok {
return nil, fmt.Errorf(content.ErrTypeNotRegistered, ns)