diff --git a/fedilogue/web.go b/fedilogue/web.go index fed7cc0..6b374bb 100644 --- a/fedilogue/web.go +++ b/fedilogue/web.go @@ -113,8 +113,6 @@ func webfinger(w http.ResponseWriter, r *http.Request) { func inboxHandler() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - fmt.Println("Start of Inbox") - body, err := ioutil.ReadAll(r.Body) if err != nil { fmt.Println(err) @@ -148,6 +146,8 @@ func inboxHandler() http.HandlerFunc { case "Reject": case "Add": case "Remove": + case "Follow": + case "Accept": case "Like": case "Announce": var announceobject AnnounceObject @@ -166,12 +166,11 @@ func inboxHandler() http.HandlerFunc { case "Delete": case "Undo": default: - fmt.Println("Unknown Others --> " + findtype.Type) + logWarn("Unknown ActivityPub request:", findtype.Type) } w.Header().Set("Content-Type", "application/json") fmt.Fprintf(w, "{}") - fmt.Println("End of Inbox") } }