freifunk / api.freifunk.net

Freifunk Community API
http://freifunk.net/api-generator/
47 stars 24 forks source link

Mastodon Handle is not correctly validated #175

Open pk2061 opened 2 months ago

pk2061 commented 2 months ago

Hi Folks,

In the API-Files for our Neanderfunk communities (e.g. Wülfrath) we had the problem that the provided mastodon handle is not correctly validated. it seems that the validation checks for an url pattern which is not allowed to contain @, while the mastodon handle has two @ symbols (like @[your username]@mastodon.social).

Is it possible to adjust the validation for the mastodon handle?

Thank you very much! Kind regards Jan

pk2061 commented 2 months ago

Sorry, I just learned that a url is also fine to link to a Mastodon account. Still I guess the url would contain the @ symbol for the username? Can you please check the validation regex anyways? Maybe I am wrong and can’t read the stuff right. - in that case I am sorry for creating a non issue.