From d66dccd076d0a8be514bbbe50335f8e4d7bccf93 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 9 Aug 2025 08:47:22 +0200 Subject: [PATCH] Fix bad slack URL --- app/Notifications/User/SubscriptionsOverdueReminder.php | 7 +++---- resources/lang/en_US/firefly.php | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Notifications/User/SubscriptionsOverdueReminder.php b/app/Notifications/User/SubscriptionsOverdueReminder.php index 4df8ccf7df..4cc6a28980 100644 --- a/app/Notifications/User/SubscriptionsOverdueReminder.php +++ b/app/Notifications/User/SubscriptionsOverdueReminder.php @@ -92,13 +92,12 @@ class SubscriptionsOverdueReminder extends Notification */ public function toSlack(User $notifiable): SlackMessage { - $bill = $this->bill; - $url = route('bills.show', [$bill->id]); + $url = route('bills.index'); return new SlackMessage() ->warning() - ->attachment(static function ($attachment) use ($bill, $url): void { - $attachment->title((string)trans('firefly.visit_bill', ['name' => $bill->name]), $url); + ->attachment(static function ($attachment) use ($url): void { + $attachment->title((string)trans('firefly.visit_bills'), $url); }) ->content($this->getSubject()) ; diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index 2cb6eff9a1..a6ca387fe2 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -1875,6 +1875,7 @@ return [ 'subscr_expected_x_times' => 'Expect to pay {{amount}} {{times}} times this period', 'not_or_not_yet' => 'Not (yet)', 'visit_bill' => 'Visit subscription ":name" at Firefly III', + 'visit_bills' => 'Visit subscriptions at Firefly III', 'match_between_amounts' => 'Subscription matches transactions between :low and :high.', 'running_again_loss' => 'Previously linked transactions to this subscription may lose their connection, if they (no longer) match the rule(s).', 'bill_related_rules' => 'Rules related to this subscription',