[AB-338] fixing messages without content not properly handled by modmail

fixing mutes and warnings paginator template
This commit is contained in:
Sheldan
2021-12-02 00:03:22 +01:00
parent 02d5d7cc1c
commit c52dbbb1f3
4 changed files with 9 additions and 8 deletions

View File

@@ -5,15 +5,15 @@
"title": "<@safe_include "modmail_thread_user_message_title"/>"
},
<#include "modmail_color">,
<#if subscribers?size gt 0>
"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>",
</#if>
<#if postedMessage.contentRaw?has_content>
"description": "${postedMessage.contentRaw?json_string}"
<#else>
"description": "<@safe_include "modmail_no_message_provided"/>"
</#if>
<#if postedMessage.attachments?size gt 0>
<#if postedMessage.contentRaw?has_content>,</#if>
"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
</#if>
<#if subscribers?size gt 0>
<#if postedMessage.contentRaw?has_content || postedMessage.attachments?size gt 0>,</#if>
"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>"
,"imageUrl": "${postedMessage.attachments[0].proxyUrl}"
</#if>
}