-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] show caption of a message even if the media is deleted #111
Comments
Implemented in 87b1fcc. I noticed there are class names in your example:
Are there any specific reasons or things your want to achieve? |
I put that simply as a placeholder ( |
@KnugiHK I actually noticed your change may also benefit the other area where the message caption is used in the HTML template. In line 169 and line 258:
Instead of |
I changed it but I haven't have time to test it, although I believe there should be no error. Could you please do so? Thanks! |
I tested these changes, and it seems to work for me just fine! |
Thanks! I will leave this open until next release. |
Released in 0.10.5. |
Describe the bug
Messages that have media and a caption, but where the media has been deleted, are not shown at all in the output file. The only thing shown is "The media is missing"
Solution:
Add a section to detect a message caption to the whatsapp.html template, specifically right after line 139 and line 223, within the section with the
{% if msg.meta == true or msg.media == false and msg.data is none %}
Specifically something like:
{% if msg.caption is not none %}
<div class="INSERT w3 formatting">
{{ msg.caption | urlize(none, true, '_blank') }}
</div>
{% endif %}
The text was updated successfully, but these errors were encountered: