diff options
author | FChannel <=> | 2021-01-28 17:02:10 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 17:02:10 -0800 |
commit | e06b4e233382155808366538ed9075c3eeb351d2 (patch) | |
tree | d1214ad14ff428ff598680547bd33605ee4e4bb0 /main.go | |
parent | 51521e934b6d80f3b7267410e592fbef3580012f (diff) |
if OP, send to OP followers
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1040,6 +1040,11 @@ func CreateObject(objType string) ObjectBase { } func AddFollowersToActivity(db *sql.DB, activity Activity) Activity{ + + if len(activity.To) < 1 { + activity.To = append(activity.To, activity.Actor.Id) + } + for _, e := range activity.To { aFollowers := GetActorCollection(e + "/followers") for _, k := range aFollowers.Items { |