Allow opening original attachment by clicking

This commit is contained in:
daudix
2024-09-11 19:22:38 +03:00
parent ae946aecd8
commit b5a7653bfe
3 changed files with 17 additions and 3 deletions

View File

@ -288,6 +288,13 @@
media.appendChild(mediaElement);
break;
}
let mediaLink = document.createElement("a");
mediaLink.setAttribute("href", attachment.url);
mediaLink.setAttribute("rel", "{{ rel_attributes }}");
mediaLink.appendChild(mediaElement);
media.appendChild(mediaLink);
}
});
}