From 3d03a17f42592abd6e8d1752392dde5d9a06ab40 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 15 Jul 2018 00:16:57 +0200 Subject: [PATCH] Set ok = true in formencoded item --- cmd/eksterd/micropub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/eksterd/micropub.go b/cmd/eksterd/micropub.go index 11caddd..3010890 100644 --- a/cmd/eksterd/micropub.go +++ b/cmd/eksterd/micropub.go @@ -81,6 +81,7 @@ func (h *micropubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { item.Name = name item.Content = µsub.Content{Text: content} item.Published = time.Now().Format(time.RFC3339) + ok = true } else { http.Error(w, "Unsupported Content-Type", 400) return