Top
activitypub
a84e349e
activitypub
A fork of go-ap/activitypub to make it easier to implement extensions
Summary
Refs
Commits
Files
Authored by
Marius Orcsik
Authored at
2020-07-12 20:42:56 +0200
Committed by
Marius Orcsik
Committed at
2020-07-12 20:42:56 +0200
Signature
View
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSQmtXZPrT1ygLMCKB5cL3H1MsmdAUCXwtZyAAKCRB5cL3H1Msm dAGqAP9U9+jPi0Eq0H3mMVLs6qRCv1bAo1JH589OsabRrHEusAD/cSuGCCKYWAl7 pQMlMUAOTYdQ8bfDAudKVwdO4XhJkAg= =SJnL -----END PGP SIGNATURE-----
Object name
a84e349e66331d833154c09a891605b83de62504
Parent
fef2c339
Apparently it's a spec requirement to remove an actor from the recipients list. Revert "Don't remove an activity's actor from the recipients, if specifically placed there" This reverts commit fef2c3399911e7b6aee472f2f7b16e00e9eb2527.
Changes
1 changed files (+3/-0)
activity.go
@@ -392,6 +392,9 @@ func (a *Activity) Recipients() ItemCollection {
if a.GetType() == BlockType && a.Object != nil {
alwaysRemove = append(alwaysRemove, a.Object)
}
+
if a.Actor != nil {
+
alwaysRemove = append(alwaysRemove, a.Actor)
+
}
if len(alwaysRemove) > 0 {
removeFromAudience(a, alwaysRemove...)
}