diff --git a/http.go b/http.go index 21d2709..f0bb900 100644 --- a/http.go +++ b/http.go @@ -96,7 +96,7 @@ func Serve() { if object, ok := activity["object"].(map[string]interface{}); ok { inReplyTo, hasReplyToString := object["inReplyTo"].(string) id, hasId := object["id"].(string) - if hasReplyToString && hasId && len(inReplyTo) > 0 && len(id) > 0 { + if hasReplyToString && hasId && len(inReplyTo) > 0 && len(id) > 0 && strings.Contains(inReplyTo, actor.iri) { // It's an ActivityPub reply fmt.Println("Received reply to:", inReplyTo) webmentionClient := webmention.New(nil)