From c3d8fb280238d8b1466e19216123d8415fa0cfce Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 15 Jul 2018 00:21:30 +0200 Subject: [PATCH] Add type to item --- cmd/eksterd/micropub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/eksterd/micropub.go b/cmd/eksterd/micropub.go index 3010890..53401ce 100644 --- a/cmd/eksterd/micropub.go +++ b/cmd/eksterd/micropub.go @@ -78,6 +78,7 @@ func (h *micropubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } else if r.Header.Get("Content-Type") == "application/x-www-form-urlencoded" { content := r.FormValue("content") name := r.FormValue("name") + item.Type = "entry" item.Name = name item.Content = µsub.Content{Text: content} item.Published = time.Now().Format(time.RFC3339)