Martin Brennan
1ba5ccd8af
FIX: When user has already hit bookmark limit, do not error for clear_reminder! or other updates ( #12658 )
...
We introduced a cap on the number of bookmarks the user can add in be145ccf2f
. However this has caused unintended side effects; when the `jobs/scheduled/bookmark_reminder_notifications.rb` runs we get this error for users who already had more bookmarks than the limit:
> Job exception: Validation failed: Sorry, you have too many bookmarks, visit #{url}/my/activity/bookmarks to remove some.
This is because the `clear_reminder!` call was triggering a bookmark validation, which raised an error because the user already had to many, holding up other reminders.
This PR also adds `max_bookmarks_per_user` hidden site setting (default 2000). This replaces the BOOKMARK_LIMIT const so we can raise it for certain sites.
2021-04-09 13:06:35 +10:00
..
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-02-09 14:56:15 +01:00
2021-04-08 21:16:34 +05:30
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-01-20 21:32:22 +01:00
2019-05-13 09:31:32 +08:00
2021-03-30 15:44:13 +02:00
2021-03-16 15:49:29 +01:00
2021-03-09 15:19:02 +01:00
2021-03-09 15:19:02 +01:00
2021-04-07 11:58:41 +02:00
2021-03-09 15:19:02 +01:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-03-16 15:49:29 +01:00
2021-02-23 15:10:04 +01:00
2021-04-09 13:06:35 +10:00
2021-04-07 11:58:41 +02:00
2021-03-23 16:12:04 +01:00
2021-03-30 15:44:13 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-03-16 15:49:29 +01:00
2021-04-07 11:58:41 +02:00
2020-10-30 16:06:32 +01:00
2021-04-07 11:58:41 +02:00
2021-03-09 15:19:02 +01:00
2021-04-07 11:58:41 +02:00
2021-02-23 15:10:04 +01:00
2021-02-23 15:10:04 +01:00
2021-03-16 15:49:29 +01:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-03-16 15:49:29 +01:00
2021-04-07 11:58:41 +02:00
2021-03-09 15:19:02 +01:00
2021-03-02 15:28:30 +01:00
2021-03-09 15:19:02 +01:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-03-02 15:28:30 +01:00
2021-02-23 15:10:04 +01:00
2021-02-23 15:10:04 +01:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-03-16 15:49:29 +01:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2018-07-31 14:41:49 +10:00
2018-05-29 21:07:17 +02:00
2019-04-25 22:49:21 +02:00