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 <nabeelio@users.noreply.github.com>
This commit is contained in:
parent
90344fb6e6
commit
777a696b35
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user