Notification on ActivityPub follow

This commit is contained in:
Jan-Lukas Else 2022-11-27 21:53:34 +01:00
parent 443b826847
commit b53b5f2b1b
1 changed files with 3 additions and 1 deletions

View File

@ -484,9 +484,11 @@ func (a *goBlog) apAccept(blogName, blogIri string, blog *configBlog, follow *ap
}
// Send accept response to the new follower
accept := ap.AcceptNew(a.apNewID(blog), follow)
accept.To = append(accept.To, newFollower)
accept.To.Append(newFollower)
accept.Actor = a.apAPIri(blog)
_ = a.apQueueSendSigned(a.apIri(blog), inbox.String(), accept)
// Notification
a.sendNotification(fmt.Sprintf("%s started following %s", newFollower.String(), a.apIri(blog)))
}
func (a *goBlog) apSendProfileUpdates() {