Demote error level
This commit is contained in:
parent
7f41b2df7c
commit
bb3bbc0eaf
@ -38,7 +38,7 @@ func WebfingerHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
if _, valid := data.GetFederatedInboxMap()[user]; !valid {
|
if _, valid := data.GetFederatedInboxMap()[user]; !valid {
|
||||||
// User is not valid
|
// User is not valid
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
log.Errorln("webfinger request rejected for user:", user)
|
log.Debugln("webfinger request rejected for user:", user)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,13 +46,6 @@ func worker(workerID int, queue <-chan Job) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func sendActivityPubMessageToInbox(job Job) error {
|
func sendActivityPubMessageToInbox(job Job) error {
|
||||||
// req, err := http.NewRequest("POST", job.inbox.String(), bytes.NewReader(job.payload))
|
|
||||||
// if err != nil {
|
|
||||||
// return err
|
|
||||||
// }
|
|
||||||
|
|
||||||
// req.Header.Set("Content-Type", "application/json")
|
|
||||||
|
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
|
|
||||||
resp, err := client.Do(job.request)
|
resp, err := client.Do(job.request)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user