Our Personal Data Server from scratch! tranquil.farm
pds rust database fun oauth atproto
238
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(validation): discord usernames may contain periods at start or end #1

open opened by max.someone.ky targeting main

i realised i couldn't set my discord username (max.) on my pds because validation failed, so i went and checked against discord's signup form and it looks like both of these are supported (the other checks should still be correct though)

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:nslfemgxjgifpkjar2ip4o4i/sh.tangled.repo.pull/3mkarsbhlcc22
-2
Diff #0
-2
crates/tranquil-pds/src/api/validation.rs
··· 287 287 && username 288 288 .chars() 289 289 .all(|c| c.is_ascii_lowercase() || c.is_ascii_digit() || c == '_' || c == '.') 290 - && !username.starts_with('.') 291 - && !username.ends_with('.') 292 290 && !username.contains("..") 293 291 } 294 292

History

1 round 0 comments
sign up or login to add to the discussion
max.someone.ky submitted #0
1 commit
expand
4ead1d46
fix(validation): discord usernames may contain periods at start or end
merge conflicts detected
expand
  • crates/tranquil-pds/src/api/validation.rs:287
expand 0 comments