fix: user avatar mime change from gif to avif

This commit is contained in:
trisua 2025-06-25 23:15:24 -04:00
parent ffdb767518
commit 6e0f2985b9
20 changed files with 219 additions and 104 deletions

View file

@ -572,9 +572,9 @@
(text "{%- endif %}"))
(script
(text "setTimeout(() => {
(text "setTimeout(async () => {
const element = document.getElementById(\"membership_info\");
const ui = ns(\"ui\");
const ui = await ns(\"ui\");
const uid = new URLSearchParams(window.location.search).get(\"uid\");
if (uid) {
@ -665,7 +665,7 @@
`/api/v1/communities/{{ community.id }}/memberships/${e.target.uid.value}`,
)
.then((res) => res.json())
.then((res) => {
.then(async (res) => {
trigger(\"atto::toast\", [
res.ok ? \"success\" : \"error\",
res.message,
@ -676,7 +676,7 @@
}
// permissions manager
const get_permissions_html = trigger(
const get_permissions_html = await trigger(
\"ui::generate_permissions_ui\",
[
{
@ -750,8 +750,8 @@
(text "{{ community.context|json_encode()|safe }}"))
(script
(text "setTimeout(() => {
const ui = ns(\"ui\");
(text "setTimeout(async () => {
const ui = await ns(\"ui\");
const settings = JSON.parse(
document.getElementById(\"settings_json\").innerHTML,
);