Skip to content

Commit

Permalink
Merge pull request #11527 from nanaya/user-from-limit
Browse files Browse the repository at this point in the history
Adjust user current location length limit
  • Loading branch information
notbakaneko authored Oct 3, 2024
2 parents 39b0e73 + 3e52e0a commit 782c046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class User extends Model implements AfterCommit, AuthenticatableContract, HasLoc

const MAX_FIELD_LENGTHS = [
'user_discord' => 37, // max 32char username + # + 4-digit discriminator
'user_from' => 30,
'user_from' => 25,
'user_interests' => 30,
'user_occ' => 30,
'user_sig' => 3000,
Expand Down
2 changes: 1 addition & 1 deletion database/factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function definition(): array
'user_interests' => fn () => mb_substr($this->faker->bs(), 0, 30),
'user_occ' => fn () => mb_substr($this->faker->catchPhrase(), 0, 30),
'user_sig' => fn () => $this->faker->realText(155),
'user_from' => fn () => mb_substr($this->faker->country(), 0, 30),
'user_from' => fn () => mb_substr($this->faker->country(), 0, 25),
'user_regdate' => fn () => $this->faker->dateTimeBetween('-6 years'),
];
}
Expand Down

0 comments on commit 782c046

Please sign in to comment.