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-01-20 13:22:41 +10:00
2019-12-03 10:05:53 +01:00
2019-04-30 10:27:42 +10:00
2020-03-10 22:13:17 +01:00
2020-07-29 09:58:29 +08:00
2020-11-11 19:46:13 +00:00
2021-04-09 13:06:35 +10:00
2019-10-02 14:01:53 +10:00
2021-03-31 19:19:57 +03:00
2019-05-07 13:12:20 +10:00
2021-02-15 08:50:33 +11:00
2019-04-30 10:27:42 +10:00
2019-04-30 10:27:42 +10:00
2019-05-07 13:12:20 +10:00
2019-05-13 21:44:03 +02:00
2019-04-30 10:27:42 +10:00
2020-03-09 10:26:41 +01:00
2021-03-17 08:55:23 +03:00
2019-05-28 16:38:41 +05:30
2021-01-21 11:37:47 +10:00
2021-02-03 10:13:32 +10:00
2020-09-28 12:02:25 +01:00
2019-10-02 14:01:53 +10:00
2020-11-11 00:44:27 +05:30
2019-10-02 14:01:53 +10:00
2020-08-27 13:42:00 +08:00
2019-10-02 14:01:53 +10:00
2021-02-05 10:12:56 +10:00
2019-05-07 13:12:20 +10:00
2019-05-07 13:12:20 +10:00
2019-05-07 13:12:20 +10:00
2019-05-07 13:12:20 +10:00
2019-05-07 13:12:20 +10:00
2020-04-16 21:24:09 +01:00
2019-05-07 13:12:20 +10:00
2020-10-07 15:30:38 +01:00
2021-02-20 08:25:32 -03:00
2020-09-28 12:02:25 +01:00
2021-02-08 10:04:33 +00:00
2021-03-17 19:22:05 +02:00
2019-10-02 14:01:53 +10:00
2019-04-30 10:27:42 +10:00
2019-04-30 10:27:42 +10:00
2019-04-30 10:27:42 +10:00
2019-10-02 14:01:53 +10:00
2019-10-02 14:01:53 +10:00
2020-07-13 15:05:30 -04:00
2020-03-09 17:37:49 +01:00
2019-10-02 14:01:53 +10:00
2020-11-10 10:09:15 +00:00
2021-03-16 17:08:54 +02:00
2020-05-28 12:52:27 +01:00
2020-12-08 11:05:01 +11:00
2020-02-18 10:53:12 -03:00
2021-03-17 08:55:23 +03:00
2020-12-07 13:35:41 +02:00
2020-12-16 09:30:21 +11:00
2019-10-02 14:01:53 +10:00
2020-08-07 18:13:02 +02:00
2021-02-11 10:03:45 +11:00
2020-10-30 09:09:56 +05:30
2021-02-03 10:13:32 +10:00
2019-10-02 14:01:53 +10:00
2019-05-07 14:05:23 -04:00
2019-04-30 10:27:42 +10:00
2020-03-10 22:13:17 +01:00
2021-01-19 09:49:50 +10:00
2021-02-09 16:41:22 +11:00
2019-04-30 10:27:42 +10:00
2019-07-19 11:29:12 +05:30
2021-01-20 13:22:41 +10:00
2021-03-10 17:07:13 +00:00
2021-01-27 10:29:24 -06:00
2021-02-17 07:51:39 +10:00
2021-03-02 16:04:16 -03:00
2020-11-03 12:38:54 +00:00
2019-04-30 10:27:42 +10:00
2021-01-25 11:23:36 +01:00
2019-09-19 14:07:56 -04:00
2019-05-07 13:12:20 +10:00
2019-05-07 13:12:20 +10:00
2020-05-14 15:42:00 -07:00
2020-08-26 12:59:05 +08:00
2021-01-19 13:30:58 +10:00
2020-03-10 22:13:17 +01:00
2019-04-30 10:27:42 +10:00
2020-10-20 19:11:43 +03:00
2020-09-02 20:19:46 -06:00
2020-09-28 12:02:25 +01:00
2020-09-02 11:17:17 +08:00
2021-04-01 16:39:28 +05:30
2020-09-28 12:02:25 +01:00