Skip to content

Commit

Permalink
fix(users): check that previousUsername isn't identical to the curren…
Browse files Browse the repository at this point in the history
…t username (#1116)
  • Loading branch information
SpeedyD authored Nov 10, 2024
1 parent 2ac86c2 commit ee23508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/user/_profile_content.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="row no-gutters">
<div class="col h2 text-center text-md-left">
{!! $user->displayName !!}
@if ($user->previousUsername)
@if ($user->previousUsername && mb_strtolower($user->name) != mb_strtolower($user->$previousUsername))
<small>{!! add_help('Previously known as ' . $user->previousUsername) !!}</small>
@endif
<a href="{{ url('reports/new?url=') . $user->url }}"><i class="fas fa-exclamation-triangle fa-xs text-danger" data-toggle="tooltip" title="Click here to report this user." style="opacity: 50%;"></i></a>
Expand Down

0 comments on commit ee23508

Please sign in to comment.