mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-31 19:59:31 -05:00
feat(discord.ts): adds a link to the pending approval discord notification (#436)
Co-authored-by: Corentin Normand <corentin.normand@swan.io>
This commit is contained in:
@@ -110,6 +110,8 @@ class DiscordAgent
|
|||||||
): DiscordRichEmbed {
|
): DiscordRichEmbed {
|
||||||
const { applicationUrl } = getSettings().main;
|
const { applicationUrl } = getSettings().main;
|
||||||
|
|
||||||
|
const appUrl =
|
||||||
|
applicationUrl || `http://localhost:${process.env.port || 5055}`;
|
||||||
let color = EmbedColors.DARK_PURPLE;
|
let color = EmbedColors.DARK_PURPLE;
|
||||||
const fields: Field[] = [];
|
const fields: Field[] = [];
|
||||||
|
|
||||||
@@ -124,7 +126,7 @@ class DiscordAgent
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case Notification.MEDIA_PENDING:
|
case Notification.MEDIA_PENDING:
|
||||||
color = EmbedColors.ORANGE;
|
color = EmbedColors.ORANGE;
|
||||||
status = 'Pending Approval';
|
status = `[Pending Approval](${appUrl}/requests)`;
|
||||||
break;
|
break;
|
||||||
case Notification.MEDIA_APPROVED:
|
case Notification.MEDIA_APPROVED:
|
||||||
case Notification.MEDIA_AUTO_APPROVED:
|
case Notification.MEDIA_AUTO_APPROVED:
|
||||||
|
|||||||
Reference in New Issue
Block a user