Skip to content

Commit

Permalink
Merge pull request #1017 from tazitus/patch-1
Browse files Browse the repository at this point in the history
Clarify avatar GIF upload error message
  • Loading branch information
HDVinnie authored Dec 16, 2019
2 parents 1e31364 + 1987bc7 commit b21260d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function editProfile(Request $request, $username)
$image->move(public_path('/files/img/'), $filename);
} else {
return redirect()->route('users.show', ['username' => $user->username])
->withErrors('Because you are uploading a GIF, your avatar must be symmetrical!');
->withErrors('Because you are uploading a GIF, your avatar must be square!');
}
}
$user->image = $user->username.'.'.$image->getClientOriginalExtension();
Expand Down

0 comments on commit b21260d

Please sign in to comment.