Don't remove an activity's actor from the recipients, if specifically placed there

This commit is contained in:
Marius Orcsik 2020-07-12 20:42:05 +02:00
parent 57c015a8e9
commit fef2c33999
No known key found for this signature in database
GPG key ID: 7970BDC7D4CB2674

View file

@ -392,9 +392,6 @@ 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...)
}