add: CACHE_BREAKER env var

This commit is contained in:
trisua 2025-06-22 18:53:02 -04:00
parent 69fc3ca490
commit aceb51c21c
7 changed files with 18 additions and 9 deletions

View file

@ -300,7 +300,7 @@
self.define(
"repost",
(
async (
_,
id,
content,
@ -308,6 +308,7 @@
do_not_redirect = false,
is_stack = false,
) => {
await trigger("atto::debounce", ["posts::create"]);
return new Promise((resolve, _) => {
fetch(`/api/v1/posts/${id}/repost`, {
method: "POST",
@ -892,7 +893,7 @@
return;
}
const now = new Date().getTime();
const now = Date.now();
const updated = Number.parseInt(updated_) + 8000;
let elapsed_since_update = now - updated;