aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index d403818..9de7e60 100644
--- a/main.go
+++ b/main.go
@@ -523,11 +523,15 @@ func CreateActivity(activityType string, obj ObjectBase) Activity {
newActivity.Object = &obj
for _, e := range obj.To {
- newActivity.To = append(newActivity.To, e)
+ if obj.Actor.Id != e {
+ newActivity.To = append(newActivity.To, e)
+ }
}
for _, e := range obj.Cc {
- newActivity.Cc = append(newActivity.Cc, e)
+ if obj.Actor.Id != e {
+ newActivity.Cc = append(newActivity.Cc, e)
+ }
}
return newActivity