Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +01:00

fix multiple federation in one host

This commit is contained in:
Michael Jerger 2024-04-06 10:59:36 +02:00
parent 41f066a1a6
commit c908455998

View file

@ -264,7 +264,8 @@ func SendLikeActivities(ctx context.Context, doer user.User, repoID int64) error
if err != nil {
return err
}
for _, activity := range likeActivityList {
for i, activity := range likeActivityList {
activity.StartTime = activity.StartTime.Add(time.Duration(i) * time.Second)
json, err := activity.MarshalJSON()
if err != nil {
return err