This commit is contained in:
parent
af6ff2dd30
commit
b6d1fbc74b
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,8 @@ func userInbox(w http.ResponseWriter, r *http.Request) {
|
|||
)
|
||||
return
|
||||
}
|
||||
log.Debug().Str("object-type", objectType).Msg("Inbox message")
|
||||
log.Trace().Bytes("body", body).Msg("Inbox raw message")
|
||||
switch objectType {
|
||||
case "Like":
|
||||
handleLike(w, r, data)
|
||||
|
@ -96,6 +98,7 @@ func userInbox(w http.ResponseWriter, r *http.Request) {
|
|||
case "Reject":
|
||||
handleReject(w, r, data)
|
||||
default:
|
||||
log.Warn().Str("object-type", objectType).Msg("Unknown message type")
|
||||
webutils.ProblemDetailsStatusOnly(w, 500)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue