aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-25 19:19:58 -0800
committerFChannel <=>2021-01-25 19:19:58 -0800
commit613b454b1208db3ce30865901f60f365513829d9 (patch)
treeec1d1742437b38a6c05dd36e80b4a885dea9eca7 /main.go
parent4f9e3a9228e38e94b77a31878104f16315bb21d3 (diff)
dont add activity actor to To list
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 95ed554..4a5ec35 100644
--- a/main.go
+++ b/main.go
@@ -1027,7 +1027,7 @@ func CreateObject(objType string) ObjectBase {
func AddFollowersToActivity(db *sql.DB, activity Activity) Activity{
followers := GetActorFollowDB(db, activity.Actor.Id)
-
+
var nActivity Activity
for _, e := range followers {
var tempActivity Activity
@@ -1041,7 +1041,7 @@ func AddFollowersToActivity(db *sql.DB, activity Activity) Activity{
for _, k := range tempActivity.To {
var alreadyTo = false
for _, n := range nActivity.To {
- if k == n {
+ if k == n || k == activity.Actor.Id {
alreadyTo = true
}
}