You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
The text was updated successfully, but these errors were encountered:
tgurr
changed the title
URL for thumbnails in mail notification doesn't include the scale variable from notif.html
URL for thumbnails in mail notification doesn't populate the method variable with scale from notif.html
Apr 20, 2022
I think this can be fixed by putting single quotes around the scale (currently JInja is treating it as a variable, which doesn't exist, so falls back to an empty string). If you change notif.html to:
Description
Link for thumbnails in mail notification doesn't populate the method variable resulting in
errcode: M_NOT_FOUND
Inspecting the mails HTML code reveals the following link to the preview image:
https://matrix.domain.corporate/_matrix/media/v1/thumbnail/domain.corporate/DAqDEJPvGLMpWPidjpgBfgaU?width=640&height=480&method=
which results in
{"errcode":"M_NOT_FOUND","error":"Not found [b'domain.corporate', b'DAqDEJPvGLMpWPidjpgBfgaU']"}
when opened in a browser window.
When manually adding the
scale
property which is present innotif.html
mail template, codeto the URL like
https://matrix.domain.corporate/_matrix/media/v1/thumbnail/domain.corporate/DAqDEJPvGLMpWPidjpgBfgaU?width=640&height=480&method=scale
the preview thumbnail is shown properly.
Steps to reproduce
Version information
If not matrix.org:
Version: {"server_version":"1.57.0","python_version":"3.9.10"}
Install method: package manager
Platform: Exherbo Linux / virtual machine
The text was updated successfully, but these errors were encountered: