Add mod lists for modpacks, liteloader support, update actix, fix moderation webhook (#357)

This commit is contained in:
Geometrically authored and GitHub committed 2022-05-26 10:08:19 -07:00
1 parent e7b41f9a4c
commit d29d910ac6
20 files changed
+667 -755

No files matched your search

+6 -3
View File
@@ -56,12 +56,15 @@ pub async fn send_discord_webhook(
value: project.server_side.to_string(),
inline: true,
},
DiscordEmbedField {
];
if !project.categories.is_empty() {
fields.push(DiscordEmbedField {
name: "categories",
value: project.categories.join(", "),
inline: true,
},
];
});
}
if let Some(ref slug) = project.slug {
fields.push(DiscordEmbedField {