summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-03 00:54:13 -0700
committerSteve Manuel <nilslice@gmail.com>2016-11-03 00:54:13 -0700
commit9db0046fadcd703d9903c7abd4159ded0730bf3a (patch)
tree0ac3592b120e175372e3d78276d2cbf8bbf2bccd /system/db/content.go
parent607f29fd3e61df0b921178995eb12fdee5049f16 (diff)
simplifying Editable interface by adding Sluggable and Identifiable interfaces, moving relevant interface methods to be implemented by other types and updating caller code to assert the new interface types as needed
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go
index cfbd4ef..b43d611 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -381,7 +381,7 @@ func postToJSON(ns string, data url.Values) ([]byte, error) {
if err != nil {
return nil, err
}
- post.(editor.Editable).SetSlug(slug)
+ post.(content.Sluggable).SetSlug(slug)
// marshall content struct to json for db storage
j, err := json.Marshal(post)