changed username to slug
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
</div>
|
||||
<div class="flex-1 min-w-0">
|
||||
<p class="text-sm text-slate-300">
|
||||
@if(!empty($data['follower_username']))
|
||||
<a href="{{ route('users.show', $data['follower_username']) }}"
|
||||
@if(!empty($data['follower_slug']))
|
||||
<a href="{{ route('users.show', $data['follower_slug']) }}"
|
||||
class="font-semibold text-white hover:text-purple-300 transition-colors">
|
||||
{{ $data['follower_name'] ?? $data['follower_username'] }}
|
||||
{{ $data['follower_name'] ?? $data['follower_slug'] }}
|
||||
</a>
|
||||
@else
|
||||
<span class="font-semibold text-white">Someone</span>
|
||||
@@ -40,8 +40,8 @@
|
||||
</p>
|
||||
<p class="text-xs text-slate-600 mt-0.5">{{ $notification->created_at?->diffForHumans() }}</p>
|
||||
</div>
|
||||
@if(!empty($data['follower_username']))
|
||||
<a href="{{ route('users.show', $data['follower_username']) }}"
|
||||
@if(!empty($data['follower_slug']))
|
||||
<a href="{{ route('users.show', $data['follower_slug']) }}"
|
||||
class="text-xs text-purple-400 hover:text-purple-300 transition-colors flex-shrink-0">
|
||||
View profile →
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user