lemmy/crates/api_common/src
Nina Blanson e63aa80c3a
Fixes #2900 - Checks slur regex to see if it is too permissive (#3146)
* Fixes #2900 - Checks slur regex to see if it is too permissive along with small validation organization

* Clean up variable names, add handler for valid empty string usecase

* Update tests

* Create validation function and add tests

* Test clean up

* Use payload value vs local site value to prevent stunlocking

* Remove println added while testing

* Fall back to local site regex if not provided from request

* Attempt clean up of flaky comment_view tests

* Pull in latest submodule

* Move application, post check into functions, add more tests and improve test readability

---------

Co-authored-by: Nutomic <me@nutomic.com>
2023-06-27 07:03:30 -04:00
..
build_response.rs Remove chatserver (#2919) 2023-06-06 12:27:22 -04:00
comment.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
community.rs add new flag to api (#3363) 2023-06-27 06:45:26 -04:00
context.rs Remove chatserver (#2919) 2023-06-06 12:27:22 -04:00
custom_emoji.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
lib.rs Remove chatserver (#2919) 2023-06-06 12:27:22 -04:00
person.rs Fixing empty req issue. (#2849) 2023-05-11 21:20:45 +02:00
post.rs Remove chatserver (#2919) 2023-06-06 12:27:22 -04:00
private_message.rs Adding comments to all API related types. Fixes #2846 (#2848) 2023-05-10 21:20:39 +02:00
request.rs Site Metadata: resolve relative URLs for embedded images/videos (#3338) 2023-06-26 15:07:57 +02:00
sensitive.rs Upgrade api_test deps (#2850) 2023-05-10 16:31:37 -04:00
site.rs Remove `actix_rt` & use standard tokio spawn (#3158) 2023-06-26 10:24:11 +02:00
utils.rs Fixes #2900 - Checks slur regex to see if it is too permissive (#3146) 2023-06-27 07:03:30 -04:00