feat: add image source to reply text when generating reply link in web template

This commit is contained in:
2025-06-27 15:33:23 +00:00
parent aaf6b7241d
commit e5ca3df33e
2 changed files with 11 additions and 2 deletions
+7 -1
View File
@@ -99,9 +99,15 @@ function updateTimes() {
const rect = container.getBoundingClientRect();
if (rect.top >= 0 && rect.bottom <= viewportHeight) {
const messageDiv = container.closest('.message');
const text = messageDiv.querySelector(".text").innerText;
let text = messageDiv.querySelector(".text").innerText;
const time = document.createElement("span");
time.innerText = app.timeDescription(container.dataset.created_at);
messageDiv.querySelectorAll("img").forEach(img => {
text += " " + '![Replied image](' + img.src + ')';
})
container.replaceChildren(time);
const reply = document.createElement("a");
reply.innerText = " reply";