Skip to content

Commit

Permalink
fix(user): send correct name to request/user/update.php (#3187)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Feb 6, 2025
1 parent 0d6d93b commit 65c02ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>
{{ csrf_field() }}
<input type='hidden' name='property' value="{{ UserAction::UpdateForumPostPermissions }}" />
<input type='hidden' name='target' value="{{ $forumTopicComment->user->username }}" />
<input type='hidden' name='target' value="{{ $forumTopicComment->user->display_name }}" />
<input type='hidden' name='value' value='1' />
<button class='btn p-1 lg:text-xs'>Authorise</button>
</form>
Expand All @@ -25,7 +25,7 @@
>
{{ csrf_field() }}
<input type='hidden' name='property' value="{{ UserAction::UpdateForumPostPermissions }}" />
<input type='hidden' name='target' value="{{ $forumTopicComment->user->username }}" />
<input type='hidden' name='target' value="{{ $forumTopicComment->user->display_name }}" />
<input type='hidden' name='value' value='0' />
<button class='btn btn-danger p-1 lg:text-xs'>Block</button>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class="bg-embed hidden border-x border-b border-text-muted py-2 px-4 w-[calc(100
<form method="post" action="/request/user/update.php">
@csrf
<input type="hidden" name="property" value="{{ UserAction::UpdatePermissions }}">
<input type="hidden" name="target" value="{{ $targetUsername }}">
<input type="hidden" name="target" value="{{ $targetUser->display_name }}">

<td class="text-right">
<button class="btn">Update Account Type</button>
Expand All @@ -66,7 +66,7 @@ class="bg-embed hidden border-x border-b border-text-muted py-2 px-4 w-[calc(100
<form method="post" action="/request/user/update.php">
@csrf
<input type="hidden" name="property" value="{{ UserAction::PatreonBadge }}">
<input type="hidden" name="target" value="{{ $targetUsername }}">
<input type="hidden" name="target" value="{{ $targetUser->display_name }}">
<input type="hidden" name="value" value="0" />
<button class="btn">Toggle Patreon Supporter</button>
</form>
Expand All @@ -81,7 +81,7 @@ class="bg-embed hidden border-x border-b border-text-muted py-2 px-4 w-[calc(100
<form method="post" action="/request/user/update.php">
@csrf
<input type="hidden" name="property" value="{{ UserAction::LegendBadge }}">
<input type="hidden" name="target" value="{{ $targetUsername }}">
<input type="hidden" name="target" value="{{ $targetUser->display_name }}">
<input type="hidden" name="value" value="0" />
<button class="btn">Toggle Certified Legend</button>
</form>
Expand All @@ -96,7 +96,7 @@ class="bg-embed hidden border-x border-b border-text-muted py-2 px-4 w-[calc(100
<form method="post" action="/request/user/update.php">
@csrf
<input type="hidden" name="property" value="{{ UserAction::TrackedStatus }}">
<input type="hidden" name="target" value="{{ $targetUsername }}">
<input type="hidden" name="target" value="{{ $targetUser->display_name }}">
<input type="hidden" name="value" value="{{ $isTargetUserUntracked ? 0 : 1 }}" />
<button class="btn btn-danger">Toggle Tracked Status</button>
</form>
Expand Down

0 comments on commit 65c02ac

Please sign in to comment.