mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-07 01:30:51 +00:00
[AB-338] fixing messages without content not properly handled by modmail
fixing mutes and warnings paginator template
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<#assign chunks=innerModel.mutes?chunk(5)>
|
||||
<#-- we have to separate the chunk, so we can re-use it to disable the last buttons, and also we have to assign the for loop value, -->
|
||||
<#-- so it available in sub templates, also the counter needs to be defined, else it doesnt the detect its a loop variable it seems -->
|
||||
<#list chunks as row><#assign row=row><#include "mutes_response_entry"><#sep>,</#list>
|
||||
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "mutes_response_entry"><#sep>,</#list>
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"restrictUser": true
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<#assign exitOnly=innerModel.warnings?size lt 6/>
|
||||
"embedConfigs": [
|
||||
<#assign chunks=innerModel.warnings?chunk(5)>
|
||||
<#list chunks as row><#assign counter=row?counter><#assign row=row><#include "warnings_response_entry"><#sep>,</#list>
|
||||
<#list chunks as row><#assign counter=row?index><#assign row=row><#include "warnings_response_entry"><#sep>,</#list>
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"restrictUser": true
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
No message provided.
|
||||
Reference in New Issue
Block a user