diff --git a/plugins/factoid.go b/plugins/factoid.go index 72191c1..38b7bb1 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -456,7 +456,7 @@ func (p *FactoidPlugin) RegisterWeb() *string { func (p *FactoidPlugin) serveQuery(w http.ResponseWriter, r *http.Request) { context := make(map[string]interface{}) - if e := r.PostFormValue("entry"); e != "" { + if e := r.FormValue("entry"); e != "" { var entries []Factoid p.Coll.Find(bson.M{"trigger": bson.M{"$regex": e}}).All(&entries) context["Count"] = fmt.Sprintf("%d", len(entries)) diff --git a/plugins/webTemplates.go b/plugins/webTemplates.go index 84af117..28d43a0 100644 --- a/plugins/webTemplates.go +++ b/plugins/webTemplates.go @@ -11,7 +11,7 @@ var factoidIndex string = `
-
+
Search for a factoid