summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/post.go2
-rw-r--r--system/api/external.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/content/post.go b/content/post.go
index eb46de7..206532c 100644
--- a/content/post.go
+++ b/content/post.go
@@ -91,5 +91,5 @@ func (p *Post) Editor() *editor.Editor { return &p.editor }
// Accepts accepts or recjects external requests to submit Review submissions
func (p *Post) Accepts() bool {
- return false
+ return true
}
diff --git a/system/api/external.go b/system/api/external.go
index b34da93..abb52c9 100644
--- a/system/api/external.go
+++ b/system/api/external.go
@@ -10,7 +10,7 @@ import (
// Externalable accepts or rejects external POST requests to /external/posts?type=Review
type Externalable interface {
- Accept() bool
+ Accepts() bool
}
func externalPostsHandler(res http.ResponseWriter, req *http.Request) {
@@ -43,7 +43,7 @@ func externalPostsHandler(res http.ResponseWriter, req *http.Request) {
return
}
- if ext.Accept() {
+ if ext.Accepts() {
_, err := db.SetContent(t+"_external"+":-1", req.Form)
if err != nil {
log.Println("[External]", err)