From 78ccd8e434d24dccaeec0c1c6fb14f5c991bd567 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Sun, 17 Jan 2021 20:58:43 -0800 Subject: fix for post reply count --- main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'main.go') 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 -- cgit v1.2.3