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);