aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFChannel <=>2021-01-17 20:58:43 -0800
committerFChannel <=>2021-01-17 20:58:43 -0800
commit78ccd8e434d24dccaeec0c1c6fb14f5c991bd567 (patch)
treee83f7956451d380a88343a03e7075d9edabf3820
parent9dc91965b1886e813aa29f5f7fb6512e2af29858 (diff)
fix for post reply count
-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