Commit Graph

27 Commits

Author SHA1 Message Date
Georg Gadinger 1791ea2d1a move timeline test data to shared context 2023-03-26 18:28:19 +02:00
Georg Gadinger 765397d813 filter out non-anon questions from blocked/muted users in home timeline 2023-03-26 18:28:19 +02:00
Georg Gadinger 4e150945e5 typoed_email_validator: add new endings to the typo list 2023-03-09 20:08:15 +01:00
Georg Gadinger 606629577a make URI.parse part of the validation for the sharing URL
the regexp alone and web browsers allows URLs to contain non-ASCII
characters, which `URI.parse` does not like -- resulting in the inbox
page to suddenly break.

also changed the `redirect_to` in the controller to a `render :edit` so
that validation errors are shown properly
2023-02-10 20:48:15 +01:00
Andreas Nedbal 4e5aca9ab5 Add specs for URL validation 2023-02-05 21:54:51 +01:00
Georg Gadinger 8b7ba59660 typoed_email_validator: add new endings to the typo list 2023-01-30 06:01:01 +01:00
Georg Gadinger a59bc3ef92 typoed_email_validator: add new endings to the typo list 2023-01-29 19:19:35 +01:00
Georg Gadinger b81bbc2483 typoed_email_validator: add new endings to the typo list 2023-01-06 10:26:32 +01:00
Georg Gadinger 0f9c6f1e07 typoed_email_validator: check for valid TLDs
i'm sure there are many more typos waiting to happen.  one thing we
can already catch though is the usage of invalid TLDs.

this makes use of my new TLDv gem -- the data it uses can be updated
independently from the main gem.
2022-10-13 21:38:54 +02:00
Georg Gadinger ea4a661368 typoed_email_validator: add new endings to the typo list 2022-10-13 07:59:54 +02:00
Georg Gadinger 0294225269 typoed_email_validator: add new endings to the typo list
gmail.co.uk is registered by the big ad company with the 5000 chat apps,
but it doesn't have a NX record
2022-10-11 20:43:29 +02:00
Georg Gadinger 2dfbc1dd3c typoed_email_validator: add new endings to the typo list 2022-10-02 22:13:34 +02:00
Georg Gadinger 37b770ddef typoed_email_validator: add new endings to the typo list 2022-08-25 20:28:29 +02:00
Georg Gadinger cb158c1fac typoed_email_validator: add new endings to the typo list 2022-08-14 20:49:51 +02:00
Georg Gadinger 5b70be74c2 typoed_email_validator: add new endings to the typo list 2022-07-24 21:44:27 +02:00
Georg Gadinger 58a3b89d67 add very important spec 2022-07-23 12:29:17 +02:00
Georg Gadinger c375775daa typoed_email_validator: add new endings to the typo list 2022-06-21 20:46:48 +02:00
Georg Gadinger 6f2c2654a1 typoed_email_validator: add new ending to the typo list 2022-04-10 10:39:40 +02:00
Georg Gadinger 3d6fb9dc34 typoed_email_validator: add new ending to the typo list
also:
- consider '.mail' TLD a typo
- get rid of a deprecation warning
2022-03-04 21:12:35 +01:00
Georg Gadinger 1997f89cc0 typoed_email_validator: add new ending to the typo list 2022-01-17 20:41:39 +01:00
Georg Gadinger 989f4a5132 run Rubocop on changed files 2022-01-17 20:41:39 +01:00
Georg Gadinger 29923fac84 add validator for typoed emails
It happens quite often that people typo their email address (I blame
phone keyboards for that).  Catch common cases in a validator and
tell the user that they have a typo in their email.

Why yes, I did write the tests for this first, thanks for asking!
2022-01-11 19:18:23 +01:00
Karina Kwiatek b438c89256 Fix broken tests 2021-12-28 15:11:41 +01:00
Georg Gadinger 101b3b68d3 Use cursored pagination, remove WillPaginate 2020-04-20 23:13:24 +02:00
nilsding cc94b08e58 more specs! 2014-12-07 11:33:26 +01:00
nilsding 76e6b8f5ec tests. 2014-11-17 23:25:28 +01:00
nilsding cae59cd5b4 added specs 2014-11-14 20:45:30 +01:00