Fix: package upgrade for slack messages

This commit is contained in:
James Cole
2023-07-17 19:18:30 +02:00
parent 47c2a66e1d
commit 5761d82635
9 changed files with 38 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ namespace FireflyIII\Notifications\Admin;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Messages\SlackMessage;
use Illuminate\Notifications\Slack\SlackMessage;
use Illuminate\Notifications\Notification;
/**
@@ -87,9 +87,9 @@ class VersionCheckResult extends Notification
public function toSlack($notifiable)
{
return (new SlackMessage())->content($this->message)
->attachment(function ($attachment) {
$attachment->title('Firefly III @ GitHub', 'https://github.com/firefly-iii/firefly-iii/releases');
});
->attachment(function ($attachment) {
$attachment->title('Firefly III @ GitHub', 'https://github.com/firefly-iii/firefly-iii/releases');
});
}
/**