summaryrefslogtreecommitdiff
path: root/system/api/external.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-26 12:50:38 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-26 12:50:38 -0700
commit54a245a5c4db84db527ae19af6f1f724a16d35d2 (patch)
treea2668d7ed0323f0136b2bab43334d3c788f90b85 /system/api/external.go
parentc9dc7199aeedeff6bd9a923d2ebd59147abd3a94 (diff)
debugging
Diffstat (limited to 'system/api/external.go')
-rw-r--r--system/api/external.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/api/external.go b/system/api/external.go
index c437d33..b34da93 100644
--- a/system/api/external.go
+++ b/system/api/external.go
@@ -44,6 +44,11 @@ func externalPostsHandler(res http.ResponseWriter, req *http.Request) {
}
if ext.Accept() {
- db.SetContent(t+"_external"+":-1", req.Form)
+ _, err := db.SetContent(t+"_external"+":-1", req.Form)
+ if err != nil {
+ log.Println("[External]", err)
+ res.WriteHeader(http.StatusInternalServerError)
+ return
+ }
}
}