Commit Graph

59 Commits

Author SHA1 Message Date
Georg Gadinger 48e63cf472 typoed_email_validator: add new endings to the typo list 2023-04-22 22:05:15 +02:00
Georg Gadinger 1ffa2e5125 filter out non-anon questions from blocked/muted users in questions view 2023-03-26 18:28:19 +02:00
Georg Gadinger 1791ea2d1a move timeline test data to shared context 2023-03-26 18:28:19 +02:00
Georg Gadinger 920187bc88 filter out non-anon questions from blocked/muted users in public timeline 2023-03-26 18:28:19 +02:00
Georg Gadinger f1a1321a25 filter out non-anon questions from blocked/muted users in list timeline 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
Karina Kwiatek 68e0f02a2d Adapt tests to match new counter methods 2023-03-07 19:14:14 +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
Andreas Nedbal f0eaf9c4a2 Remove `Services::Twitter` spec 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
Karina Kwiatek 3a6814b908 Respect allow long questions setting 2023-01-08 14:03:54 +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
Karina Kwiatek fc161e2dcf Use `/@username` for profile paths 2022-07-23 09:11:32 +02:00
Georg Gadinger 61cea34f5e replace Timecop with ActiveSupport::Testing::TimeHelpers
resolves #525
2022-07-19 17:18:27 +02:00
Karina Kwiatek 601aa07de1 Add model tests for `Answer` 2022-07-09 01:15:31 +02:00
Karina Kwiatek 90b2aa0110 Add model tests for `Appendable::Reaction` 2022-07-09 01:15:31 +02:00
Karina Kwiatek 400994179a Add tests for `UserBan` model 2022-07-02 17:08:44 +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 d3aaaeb12d
Double question character limit (#292) 2022-01-10 22:01:47 +01:00
Georg Gadinger 3c58257d21 remove tumblr
Resolves #274
2022-01-05 19:32:52 +01:00
Karina Kwiatek f85769eb55 Add mute rules 2022-01-01 00:38:36 +01:00
Karina Kwiatek b438c89256 Fix broken tests 2021-12-28 15:11:41 +01:00
Andreas Nedbal 719e393ed1 Add test for `Services::Tumblr` 2021-12-27 14:28:11 +01:00
Karina Kwiatek 570425821f Add test for handling answers that don't need to be shortened for tweets 2021-12-25 22:27:32 +01:00
Karina Kwiatek 3204aaa2e9 Add test for tweet shortening
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2021-12-25 22:08:20 +01:00
Karina Kwiatek d81641ac18 Add theme model spec 2021-08-13 01:23:07 +02:00
Georg Gadinger ea0685136e Rename Groups to Lists
haha regexp go brrr

special thanks to @seatsea for helping me out with the French locales
2020-05-25 18:04:54 +02:00
Georg Gadinger 101b3b68d3 Use cursored pagination, remove WillPaginate 2020-04-20 23:13:24 +02:00
Dominik M. Kwiatek 516bc48aa0
Merge pull request #70 from Retrospring/feature/announcements
Implement Announcements
2020-04-19 23:10:47 +01:00
Karina Kwiatek 864d5844dc Add Announcement tests 2020-04-19 22:38:01 +01:00
Georg Gadinger 477ec3e9c9 Do not allow creation of groups with empty names 2020-04-19 23:28:50 +02:00
Karina Kwiatek 391f4a28ed Merge branch 'master' into feature/announcements
# Conflicts:
#	db/schema.rb
2020-04-19 21:52:58 +01:00
Georg Gadinger a0c9641994 Remove useless specs 2020-04-19 22:31:43 +02:00
Karina Kwiatek 8a632a09cd Create Announcement model & controller 2020-04-19 20:12:22 +01:00