discourse/plugins
Joffrey JAFFEUX c996b7fe4b
FIX: prevents readonly mode to crash channel_messages#index (#22987)
Prior to this fix `context.membership&.update!(last_viewed_at: Time.zone.now)` would generate an update statement from a GET request which is not permitted by default when in readonly mode.

The usual fix in this case is to check for readonly or rescue an error, however, this common pattern of updating "last seen" or similar can be better handled in a `Schedule::Defer` block, which won't raise the `ActiveRecord::ReadOnlyError` when in readonly and will also prevent the controller to wait for this operation.
2023-08-07 16:34:22 +02:00
..
chat FIX: prevents readonly mode to crash channel_messages#index (#22987) 2023-08-07 16:34:22 +02:00
checklist DEV: Use async/await in checklist (#22943) 2023-08-02 23:24:20 +02:00
discourse-details Update translations (#22300) 2023-06-27 16:39:27 +02:00
discourse-lazy-videos FIX: Allow to use %h%m%s for youtube t param (#22299) 2023-07-03 10:39:37 -03:00
discourse-local-dates DEV: Update composer service to inherit from Service, not Controller (#22929) 2023-08-02 12:44:18 +01:00
discourse-narrative-bot Update translations (#22904) 2023-08-01 16:05:44 +02:00
discourse-presence FEATURE: Separated 'trusted users can edit others' setting for trust level 3 & 4 (#21493) 2023-07-07 10:48:14 -05:00
poll FIX: Poll breakdown regressions (#22955) 2023-08-03 16:58:52 +02:00
styleguide UX: Introduce toggle-switch UI for plugins (#22910) 2023-08-03 15:19:33 +01:00