aboutsummaryrefslogtreecommitdiff
path: root/route
diff options
context:
space:
mode:
authorFChannel <>2022-06-16 11:52:17 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit44a5de2ecef3cba0d4d596f86183e7fd383615c0 (patch)
tree06ada6a6c47f6c2352631e5ded95667fabe2d9b5 /route
parentddc61bb3a8eb7219ba7e232b1606da556f262fa3 (diff)
changes for better failed delivery attempts
Diffstat (limited to 'route')
-rw-r--r--route/routes/admin.go5
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)
}