Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(user): send correct name to request/user/update.php #3187

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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