discourse/plugins/chat/spec
Charles Lechasseur 0fa180beed
FIX: In chat messages, filter uploads by UserUpload, not by Upload.user (#34596)
When creating or updating a chat message, uploads attached to the
message are filtered so as to only keep uploads created by the message
creator using `Upload.user`. This field, however, only points to the
_original_ user that created the upload, but since uploads are
de-duplicated, other users might have also uploaded the file. This PR
fixes this by looking at the `UserUpload`s instead (as suggested by
@SamSaffron).

Reported here: https://meta.discourse.org/t/chat-upload-bug/379253
2025-09-01 20:06:27 +10:00
..
components/chat DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
fabricators FIX: Error when leaving group DM channel (#31537) 2025-02-27 14:26:07 +10:00
integration DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
jobs DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
lib FIX: supports html entities in chat (#34591) 2025-08-28 07:34:24 +02:00
mailers DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
models DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
queries/chat DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
requests DEV: Unify ListChannelMessages/ListChannelThreadMessages behaviors 2025-08-25 13:48:02 +02:00
serializer DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
services FIX: In chat messages, filter uploads by UserUpload, not by Upload.user (#34596) 2025-09-01 20:06:27 +10:00
support DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
system FIX: client based chat message timestamp (#34592) 2025-08-28 10:21:19 +01:00
validators FEATURE: Add setting to prevent anonymous users from using chat (#31842) 2025-03-21 13:32:52 +03:00
plugin_helper.rb FIX: remove complicated 'chat_duplicate_message_sensitivity' site setting (#30516) 2025-01-13 12:32:51 +01:00
plugin_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00