mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-03 13:53:21 +00:00
fix: Address review comments
This commit is contained in:
1 parent
3896630859
commit
61f142a541
11 files changed
+61
-42
No files matched your search
@@ -77,7 +77,8 @@ impl super::Service {
|
||||
if let Ok(canonical_profile) = to_canonical_object(full_profile) {
|
||||
if serde_json::to_string(&canonical_profile)
|
||||
.expect("should be able to serialize to string")
|
||||
.len() > MAX_PROFILE_LENGTH_BYTES
|
||||
.len()
|
||||
> MAX_PROFILE_LENGTH_BYTES
|
||||
{
|
||||
return Err!(Request(ProfileTooLarge(
|
||||
"Profile data must not exceed {MAX_PROFILE_LENGTH_BYTES} bytes in \
|
||||
|
||||
Reference in new issue
Block a user