Commit graph

1020 commits

Author SHA1 Message Date
Anton Khorev
cff4c63713 Add deactivates_at date to user blocks
Block deactivation dates that take needs_view-block views into account were derived using updated_at. This was possible because inactive blocks couldn't be edited and their updated_at date wouldn't change. With editing of inactive blocks enabled deactivation date needs to be saved explicitly.
2024-08-19 14:33:20 +03:00
Anton Khorev
a082caef3c Use casecmp?() instead of casecmp().zero? 2024-07-13 16:00:45 +03:00
Tom Hughes
c38e3d6144 Enforce changeset size limit for API calls which make changes 2024-06-19 00:46:34 +01:00
Nenad Vujicic
a4d3d324ec Add note and diary comments counts to the user profile
Fixes #1643
2024-06-07 21:20:42 +02:00
Anton Khorev
a73e20cd5c Set Open Graph image to first image for diary entries 2024-06-06 17:28:57 +03:00
Tom Hughes
d3d0da0328 Fix new rubocop warnings 2024-05-28 17:39:33 +01:00
Tom Hughes
ca893c1153 Fix new rubocop warnings 2024-05-21 18:21:56 +01:00
Andy Allan
39963d8c70
Merge pull request #4633 from tomhughes/trace-images
Trace image cleanups
2024-05-15 16:38:00 +01:00
Milan Cvetkovic
f8a606869e Remove email confirmation field in signup form 2024-04-27 12:44:09 +01:00
Anton Khorev
b8cf4b59e5 Add (creator_id, id) index to blocks table 2024-04-05 12:21:08 +03:00
Anton Khorev
f19e0c36f5 Remove outdated comment 2024-03-30 11:03:06 +03:00
Anton Khorev
349200fb0a Rename update element consistency check 2024-03-30 10:57:39 +03:00
Anton Khorev
09f6b83486 Refactor update element consistency check 2024-03-30 10:57:27 +03:00
Anton Khorev
29432d5e9f Rename create element consistency check 2024-03-30 10:13:24 +03:00
Anton Khorev
f50ca826aa Refactor create element consistency check 2024-03-30 10:09:55 +03:00
Tom Hughes
91143a5959 Use imported scope to simplify trace controller methods 2024-03-28 17:26:04 +00:00
Anton Khorev
16cc2e75a7 Remove unused includes of ConsistencyValidations 2024-03-28 11:49:49 +03:00
Tom Hughes
c91bd55222 Merge remote-tracking branch 'upstream/pull/4566' 2024-03-13 18:05:48 +00:00
Tom Hughes
d56322a0dd Consistently exclude hidden diaries from spam scoring 2024-03-12 00:13:57 +00:00
Ishmeet Singh
a33174acb8 Add NOT NULL constraints to redaction title and description 2024-03-11 09:27:11 +00:00
Tom Hughes
29cc21c599 Drop user tokens table 2024-02-28 21:02:54 +00:00
Tom Hughes
3360f91733 Require display names to have a minimum unicode width of 3 columns
Fixes #4538
2024-02-25 13:21:03 +00:00
Andy Allan
a1a6c577e8
Merge pull request #4534 from tomhughes/list-headers
Add standard List-XXX headers to some notification mails
2024-02-25 11:36:05 +01:00
Andy Allan
2dfe6f3f2e
Merge pull request #4536 from tomhughes/trace-size-limit
Add a limit on the number of points in a GPS trace
2024-02-25 11:35:20 +01:00
Andy Allan
52f755cb27
Merge pull request #4535 from tomhughes/rails-tokens
Use rails generated tokens for emails
2024-02-25 11:32:15 +01:00
Tom Hughes
741ed58838 Add a limit on the number of points in a GPS trace 2024-02-25 09:50:02 +00:00
Tom Hughes
8e21e4e801 Move mechanics of changeset subscriptions into the model 2024-02-25 09:48:11 +00:00
Tom Hughes
9444ad494f Reduce priority of multiple simulataneous trace imports 2024-02-24 17:07:38 +00:00
Tom Hughes
33d292e981 Move scheduling of trace import and destruction to the model 2024-02-24 17:07:38 +00:00
Tom Hughes
4dff06a629 Use rails tokens for signup confirmations 2024-02-24 13:53:05 +00:00
Tom Hughes
ad2739347b Use rails tokens for email changes 2024-02-24 13:52:35 +00:00
Tom Hughes
b8fad531e4 Use rails tokens for password resets 2024-02-24 13:23:19 +00:00
Tom Hughes
b42d48ff65 Add scope for unexpired user tokens 2024-02-24 13:20:07 +00:00
Andy Allan
c9a86866bb
Merge pull request #4485 from tomhughes/drop-lower-index
Drop lowercase index on display names
2024-01-18 10:49:52 +00:00
Andy Allan
7406ae5dcc
Merge pull request #4218 from AntonKhorev/no-user-id-renames
Disallow username changes to user_n if n isn't their id
2024-01-18 10:47:17 +00:00
Andy Allan
0a21080192 Move change detection to validation declaration
This aligns with other validations. Also add test to ensure unchanged
display_names are treated as valid.
2024-01-18 10:33:56 +00:00
Anton Khorev
2c342adc0d Disallow username changes to user_n if n isn't their id 2024-01-18 10:33:56 +00:00
Tom Hughes
9db635a992 Drop lowercase index on display names 2024-01-17 19:05:25 +00:00
Andy Allan
d5efa4c357
Merge pull request #4405 from tomhughes/normalize-display-name
Require user names to be unique after unicode normalisation
2024-01-17 16:24:09 +00:00
Tom Hughes
242a4a1aee Include both copies of the password in the saved user
This allows is to go back to hashing passwords when the user is saved.

Fixes #4474
2024-01-12 17:55:16 +00:00
Anton Khorev
6427f68ea7 Don't show native language name if it's the same as English name 2024-01-02 09:09:33 +03:00
Gregory Igelmund
efc61f1315 Add basic structures for UserMute and Message muting logic
Including models, migration, controllers, views & locales.
2023-12-19 12:57:47 -05:00
Tom Hughes
9a6a6fab73 Make allow_account_creation work the same as other ACLs 2023-12-19 12:03:08 +00:00
Milan Cvetkovic
a4c23cd89f Implement allow list for account creation 2023-12-17 07:55:43 +00:00
Tom Hughes
c12f8959dd Require user names to be unique after unicode normalisation
As with the previous checks on case sensitivity this only affects
new users, and changes to names of existing users.
2023-12-13 22:27:36 +00:00
Tom Hughes
0c2e471708 Fix new rubocop warnings 2023-12-05 18:13:13 +00:00
Anton Khorev
a8aaf62e62 Add earliest allowed deletion time to user model 2023-11-22 17:02:48 +03:00
Tom Hughes
aaed886890 Hash passwords as soon as a new user is created 2023-11-16 01:02:11 +00:00
Tom Hughes
cebda5ffb9 Merge remote-tracking branch 'upstream/pull/4319' 2023-11-15 17:14:49 +00:00
Tom Hughes
68845eb725 Use the URL safe base64 variant for mail tokens 2023-11-08 22:53:18 +00:00