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

@ -322,6 +322,7 @@
\"Spotify\",
{
token: new_token,
refresh_token: new_refresh_token,
expires_in: expires_in.toString(),
name: profile.display_name,
},

View file

@ -136,7 +136,7 @@
("class" "dropdown")
("style" "width: max-content")
(button
("class" "camo raised small")
("class" "raised small")
("onclick" "trigger('atto::hooks::dropdown', [event])")
("exclude" "dropdown")
(icon (text "sliders-horizontal"))

View file

@ -20,7 +20,7 @@
("class" "dropdown")
("style" "width: max-content")
(button
("class" "camo raised small")
("class" "raised small")
("onclick" "trigger('atto::hooks::dropdown', [event])")
("exclude" "dropdown")
(icon (text "sliders-horizontal"))

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;