aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
authorFChannel <=>2021-02-02 23:28:35 -0800
committerFChannel <=>2021-02-02 23:28:35 -0800
commit3e42ce191ed9a72ed8aa69ee7819a20bb4d23048 (patch)
tree7c5427161376bd6e2f18ccf4b92fd6af2ae24fc9 /OutboxPost.go
parentea664188aa26a55b31c5b789cb4a98e33af7fc99 (diff)
added rules.html and faq.html change to fit your own instance specs.
Diffstat (limited to 'OutboxPost.go')
-rw-r--r--OutboxPost.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/OutboxPost.go b/OutboxPost.go
index 9d7c004..6483a27 100644
--- a/OutboxPost.go
+++ b/OutboxPost.go
@@ -510,7 +510,7 @@ func GetActivityFromJson(r *http.Request, db *sql.DB) Activity {
func CheckCaptcha(db *sql.DB, captcha string) bool {
parts := strings.Split(captcha, ":")
- if strings.Trim(parts[0], " ") == "" {
+ if strings.Trim(parts[0], " ") == "" || strings.Trim(parts[1], " ") == ""{
return false
}