mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-04-14 03:46:00 +00:00
[AB-xxx] some fixes/simplifications/changes for user installable applications
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
{
|
||||
"embeds": [
|
||||
{
|
||||
<#include "member_author">
|
||||
<@member_author member=memberInfo/>,
|
||||
<#include "abstracto_color">,
|
||||
"imageUrl": "${memberInfo.user.effectiveAvatarUrl}",
|
||||
"imageUrl": "${avatarUrl}",
|
||||
"fields": [
|
||||
{
|
||||
<#include "member_user_name">
|
||||
"name": "<@safe_include "showAvatar_response_embed_user_field_title"/>",
|
||||
"value": "<@member_member_name member=memberInfo/>",
|
||||
"inline": "true"
|
||||
},
|
||||
{
|
||||
"name": "<@safe_include "showAvatar_response_embed_image_field_title"/>",
|
||||
"value": "[<@safe_include "showAvatar_response_embed_image_field_value_display"/>](${memberInfo.user.effectiveAvatarUrl})",
|
||||
"value": "[<@safe_include "showAvatar_response_embed_image_field_value_display"/>](${avatarUrl})",
|
||||
"inline": "true"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -8,6 +8,18 @@
|
||||
<#include "member_avatar">
|
||||
"thumbnail": "<@member_display_avatar member=memberDisplay/>",
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_user_name_field_title"/>",
|
||||
"value": "${memberDisplay.userName}",
|
||||
"inline": "true"
|
||||
},
|
||||
<#if memberDisplay.displayName?has_content>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_global_name_field_title"/>",
|
||||
"value": "${memberDisplay.displayName}",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_id_field_title"/>",
|
||||
"value": "${id?c}",
|
||||
@@ -20,22 +32,26 @@
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
<#if onlineStatus?has_content>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_status_field_title"/>",
|
||||
"value": "${onlineStatus?json_string}",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
<#if joinDate?has_content>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_joined_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=joinDate/>",
|
||||
"inline": "true"
|
||||
},
|
||||
</#if>
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_registered_field_title"/>",
|
||||
"value": "<@format_instant_date_time instant=creationDate/>",
|
||||
"inline": "true"
|
||||
}
|
||||
<#if roles?size gt 0>
|
||||
<#if roles?has_content && roles?size gt 0>
|
||||
,
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_roles_field_title"/>",
|
||||
@@ -44,7 +60,7 @@
|
||||
"valueSplitLength": 250
|
||||
}
|
||||
</#if>
|
||||
<#if activities?size gt 0>
|
||||
<#if activities?has_content && activities?size gt 0>
|
||||
,
|
||||
{
|
||||
"name": "<@safe_include "userInfo_response_embed_activity_field_title"/>",
|
||||
|
||||
Reference in New Issue
Block a user