From 44a5de2ecef3cba0d4d596f86183e7fd383615c0 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Thu, 16 Jun 2022 11:52:17 -0700 Subject: changes for better failed delivery attempts --- route/routes/admin.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'route/routes/admin.go') 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) } -- cgit v1.2.3