changed username to slug

This commit is contained in:
Doar Mihai
2026-05-30 23:47:32 +03:00
parent ece3070676
commit bdb4457e77
15 changed files with 77 additions and 46 deletions
@@ -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>