Removing debug lines

This commit is contained in:
Farhan Khan 2022-01-13 17:14:22 -05:00
parent 2d7c09a905
commit 160d140cf6

View File

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