diff --git a/webmention.go b/webmention.go index f28c3d3..248cb83 100644 --- a/webmention.go +++ b/webmention.go @@ -85,7 +85,7 @@ func HandleWebmention(w http.ResponseWriter, r *http.Request) { return } // Check if target is blog - if !strings.HasPrefix(targetUrl.String(), BlogUrl) { + if !strings.HasPrefix(targetUrl.String(), strings.TrimSuffix(BlogUrl, "/")) { err = errors.New("wrong webmention target") w.WriteHeader(http.StatusBadRequest) _, _ = w.Write([]byte(err.Error()))