summaryrefslogtreecommitdiff
path: root/system/api/external.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-29 17:36:47 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-29 17:36:47 -0700
commitb1212fa6f48da1d539a73e1bd5a0bf6894b97d7d (patch)
tree43529519307a01aad1006975e3f04cea9c88c273 /system/api/external.go
parent0be1959e0e19bf77c24ddd49e0ad9ccea0e3b31a (diff)
adding db procedures and updating handler for external submissions / pending content
Diffstat (limited to 'system/api/external.go')
-rw-r--r--system/api/external.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/external.go b/system/api/external.go
index a65618b..f9f2538 100644
--- a/system/api/external.go
+++ b/system/api/external.go
@@ -59,7 +59,7 @@ func externalPostsHandler(res http.ResponseWriter, req *http.Request) {
}
if ext.Accepts() {
- _, err := db.SetContent(t+"_external"+":-1", req.Form)
+ err := db.SetPendingContent(t+"_pending", req.Form)
if err != nil {
log.Println("[External] error:", err)
res.WriteHeader(http.StatusInternalServerError)