mirror of
https://github.com/discourse/discourse.git
synced 2025-10-03 17:21:20 +08:00
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 |
||
---|---|---|
.. | ||
automation | ||
chat | ||
checklist | ||
discourse-adplugin | ||
discourse-affiliate | ||
discourse-ai | ||
discourse-apple-auth | ||
discourse-assign | ||
discourse-calendar | ||
discourse-chat-integration | ||
discourse-data-explorer | ||
discourse-details | ||
discourse-gamification | ||
discourse-github | ||
discourse-graphviz | ||
discourse-hcaptcha | ||
discourse-lazy-videos | ||
discourse-local-dates | ||
discourse-login-with-amazon | ||
discourse-lti | ||
discourse-math | ||
discourse-microsoft-auth | ||
discourse-narrative-bot | ||
discourse-oauth2-basic | ||
discourse-openid-connect | ||
discourse-patreon | ||
discourse-policy | ||
discourse-post-voting | ||
discourse-presence | ||
discourse-reactions | ||
discourse-rss-polling | ||
discourse-solved | ||
discourse-subscriptions | ||
discourse-templates | ||
discourse-topic-voting | ||
discourse-user-notes | ||
discourse-zendesk-plugin | ||
footnote | ||
poll | ||
spoiler-alert | ||
styleguide |