jlelse
/
jsonpub
Archived
1
Fork 0

Fix mentions, that are replies too

This commit is contained in:
Jan-Lukas Else 2020-04-02 22:45:06 +02:00
parent 6310ff356d
commit e41cd3b07f
1 changed files with 1 additions and 1 deletions

View File

@ -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)