From 5af53735504f57747403d4ab4e44a6d4a2e17b1b Mon Sep 17 00:00:00 2001 From: Ryonez Coruscare Date: Thu, 5 Sep 2019 13:41:32 +1200 Subject: [PATCH] Fixed Project Attachment --- Notification/Discord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Notification/Discord.php b/Notification/Discord.php index 7b64d63..348669f 100644 --- a/Notification/Discord.php +++ b/Notification/Discord.php @@ -55,7 +55,7 @@ class Discord extends Base implements NotificationInterface public function notifyProject(array $project, $eventName, array $eventData) { $webhook = $this->projectMetadataModel->get($project['id'], 'discord_webhook_url', $this->configModel->get('discord_webhook_url')); - $forward_attachments = $this->userMetadataModel->get($user['id'], 'forward_attachments', $this->configModel->get('forward_attachments')); + $forward_attachments = $this->userMetadataModel->get($project['id'], 'forward_attachments', $this->configModel->get('forward_attachments')); if (! empty($webhook)) { $this->sendMessage($webhook, $forward_attachments, $project, $eventName, $eventData);