From 777a696b3539bf92931793429bee72319371ce79 Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Wed, 9 Jun 2021 18:43:08 +0300 Subject: [PATCH] Use Profile Route for Author URL (Discord Messages) (#1227) * Update PirepStatusChanged.php Use profile route for author url instead of pirep * Update PirepSubmitted.php Use profile route for author url instead of pirep * Update PirepPrefiled.php Use profile route for author instead of pirep Co-authored-by: Nabeel S --- app/Notifications/Messages/PirepPrefiled.php | 2 +- app/Notifications/Messages/PirepStatusChanged.php | 2 +- app/Notifications/Messages/PirepSubmitted.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Notifications/Messages/PirepPrefiled.php b/app/Notifications/Messages/PirepPrefiled.php index 66f6f62c..c150ce92 100644 --- a/app/Notifications/Messages/PirepPrefiled.php +++ b/app/Notifications/Messages/PirepPrefiled.php @@ -79,7 +79,7 @@ class PirepPrefiled extends Notification implements ShouldQueue ->url(route('frontend.pireps.show', [$pirep->id])) ->author([ 'name' => $pirep->user->ident.' - '.$pirep->user->name_private, - 'url' => route('frontend.pireps.show', [$pirep->id]), + 'url' => route('frontend.profile.show', [$pirep->user_id]), 'icon_url' => $pirep->user->resolveAvatarUrl(), ]) ->fields($fields); diff --git a/app/Notifications/Messages/PirepStatusChanged.php b/app/Notifications/Messages/PirepStatusChanged.php index c3441723..39c042e1 100644 --- a/app/Notifications/Messages/PirepStatusChanged.php +++ b/app/Notifications/Messages/PirepStatusChanged.php @@ -118,7 +118,7 @@ class PirepStatusChanged extends Notification implements ShouldQueue ->url(route('frontend.pireps.show', [$pirep->id])) ->author([ 'name' => $pirep->user->ident.' - '.$pirep->user->name_private, - 'url' => route('frontend.pireps.show', [$pirep->id]), + 'url' => route('frontend.profile.show', [$pirep->user_id]), 'icon_url' => $pirep->user->resolveAvatarUrl(), ]) ->fields($fields); diff --git a/app/Notifications/Messages/PirepSubmitted.php b/app/Notifications/Messages/PirepSubmitted.php index fea9f38f..a33f1163 100644 --- a/app/Notifications/Messages/PirepSubmitted.php +++ b/app/Notifications/Messages/PirepSubmitted.php @@ -85,7 +85,7 @@ class PirepSubmitted extends Notification implements ShouldQueue ->url(route('frontend.pireps.show', [$pirep->id])) ->author([ 'name' => $pirep->user->ident.' - '.$pirep->user->name_private, - 'url' => route('frontend.pireps.show', [$pirep->id]), + 'url' => route('frontend.profile.show', [$pirep->user_id]), 'icon_url' => $pirep->user->resolveAvatarUrl(), ]) ->fields($fields);