diff options
author | FChannel <=> | 2021-01-17 20:58:43 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-17 20:58:43 -0800 |
commit | 78ccd8e434d24dccaeec0c1c6fb14f5c991bd567 (patch) | |
tree | e83f7956451d380a88343a03e7075d9edabf3820 | |
parent | 9dc91965b1886e813aa29f5f7fb6512e2af29858 (diff) |
fix for post reply count
-rw-r--r-- | main.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |