fix: global question answering
This commit is contained in:
parent
0f556bb7c8
commit
50319f9124
2 changed files with 1 additions and 7 deletions
|
@ -61,11 +61,7 @@
|
||||||
await trigger(\"atto::debounce\", [\"posts::create\"]);
|
await trigger(\"atto::debounce\", [\"posts::create\"]);
|
||||||
|
|
||||||
// poll
|
// poll
|
||||||
const poll_data = get_poll_data();
|
const poll_data = [true, null];
|
||||||
|
|
||||||
if (!poll_data[0]) {
|
|
||||||
return alert(poll_data[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
// create body
|
// create body
|
||||||
const body = new FormData();
|
const body = new FormData();
|
||||||
|
|
|
@ -95,7 +95,6 @@ media_theme_pref();
|
||||||
const day_diff = Math.floor(diff / 86400);
|
const day_diff = Math.floor(diff / 86400);
|
||||||
|
|
||||||
if (Number.isNaN(day_diff) || day_diff < 0 || day_diff >= 31) {
|
if (Number.isNaN(day_diff) || day_diff < 0 || day_diff >= 31) {
|
||||||
console.log(diff);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,7 +181,6 @@ media_theme_pref();
|
||||||
|
|
||||||
element.setAttribute("title", then.toLocaleString());
|
element.setAttribute("title", then.toLocaleString());
|
||||||
|
|
||||||
console.log($.rel_date(then));
|
|
||||||
const pretty =
|
const pretty =
|
||||||
$.rel_date(then)
|
$.rel_date(then)
|
||||||
.replaceAll(" minutes ago", "m")
|
.replaceAll(" minutes ago", "m")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue