diff options
author | FChannel <> | 2022-06-16 11:52:17 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 44a5de2ecef3cba0d4d596f86183e7fd383615c0 (patch) | |
tree | 06ada6a6c47f6c2352631e5ded95667fabe2d9b5 /route/routes | |
parent | ddc61bb3a8eb7219ba7e232b1606da556f262fa3 (diff) |
changes for better failed delivery attempts
Diffstat (limited to 'route/routes')
-rw-r--r-- | route/routes/admin.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/route/routes/admin.go b/route/routes/admin.go index c198e21..81b9946 100644 --- a/route/routes/admin.go +++ b/route/routes/admin.go @@ -192,6 +192,8 @@ func AdminFollow(ctx *fiber.Ctx) error { redirect = actor.Name } + time.Sleep(time.Duration(500) * time.Millisecond) + return ctx.Redirect("/"+config.Key+"/"+redirect, http.StatusSeeOther) } @@ -230,6 +232,9 @@ func AdminAddBoard(ctx *fiber.Ctx) error { newActorActivity.Object.Sensitive = board.Restricted newActorActivity.MakeRequestOutbox() + + time.Sleep(time.Duration(500) * time.Millisecond) + return ctx.Redirect("/"+config.Key, http.StatusSeeOther) } |