mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-18 12:57:39 +00:00
replaced a bunch of places where the database loaded objects were referenced across threads, this might have lead to problems when lazy loading them
fixed starboard post template fixed starboard post deletion
This commit is contained in:
@@ -11,37 +11,37 @@
|
||||
"r": 200,
|
||||
"g": 0,
|
||||
"b": 255
|
||||
},
|
||||
}
|
||||
<#if message.content?has_content || message.embeds?size gt 0>
|
||||
"description": "${message.content}
|
||||
,"description": "${message.content}
|
||||
<#list message.embeds>
|
||||
<#include "starboard_post_embed_embeds_name">:
|
||||
<#items as embed>
|
||||
<#include "starboard_post_embed_description">: ${embed.description} <#if embed.imageUrl?has_content> <#include "starboard_post_embed_image_url">: ${embed.imageUrl} </#if>
|
||||
</#items>
|
||||
</#list>
|
||||
",
|
||||
"
|
||||
</#if>
|
||||
<#assign emote>${starLevelEmote}</#assign>
|
||||
<#assign count>${starCount}</#assign>
|
||||
<#assign messageId>${message.messageId?c}</#assign>
|
||||
<#if channel?has_content>
|
||||
<#assign channel>${channel.asMention}</#assign>
|
||||
"additionalMessage": "<#include "starboard_post_embed_additional_message">",
|
||||
<#assign channelMention>${channel.asMention}</#assign>
|
||||
,"additionalMessage": "<#include "starboard_post_embed_additional_message">"
|
||||
<#else>
|
||||
<#assign channel>${aChannel.id?c}</#assign>
|
||||
"additionalMessage": "<#include "starboard_post_embed_additional_message">",
|
||||
<#assign channelMention>${aChannel.id?c}</#assign>
|
||||
,"additionalMessage": "<#include "starboard_post_embed_additional_message">"
|
||||
</#if>
|
||||
<#if message.attachmentUrls?size gt 0>
|
||||
"imageUrl": "${message.attachmentUrls[0]}",
|
||||
,"imageUrl": "${message.attachmentUrls[0]}"
|
||||
</#if>
|
||||
"fields": [
|
||||
,"fields": [
|
||||
{
|
||||
"name": "<#include "starboard_post_embed_original_field_title">",
|
||||
"name": "<#include "starboard_post_embed_original_field_title">"
|
||||
<#if channel?has_content>
|
||||
"value": "[${channel.name}](${message.messageUrl})"
|
||||
,"value": "[${channel.name}](${message.messageUrl})"
|
||||
<#else>
|
||||
"value": "[${aChannel.id?c}](${message.messageUrl})"
|
||||
,"value": "[${aChannel.id?c}](${message.messageUrl})"
|
||||
</#if>
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user