discourse/plugins/chat/lib/chat
David Battersby 1671512ce6
FIX: uploads with no extension causing error in message processor (#35656)
Sometimes the upload extension will be `nil`, which is causing an error
in the logs:

```
Job exception: undefined method `downcase' for nil
```

We check against an allowlist of common file types, so using safe
navigation we can return early and avoid the error.
2025-10-28 16:22:37 +04:00
..
schemas DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
bookmark_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
category_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
channel_archive_service.rb FEATURE: Add threads support to chat archives (#24325) 2023-11-27 15:47:35 +01:00
channel_fetcher.rb PERF: Fix N+1 queries due to user custom fields when loading chat DMs (#35516) 2025-10-22 09:39:01 +08:00
channel_hashtag_data_source.rb DEV: add channel hashtag style type (#33284) 2025-06-20 10:04:36 +04:00
channel_membership_manager.rb PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00
duplicate_message_validator.rb FIX: Duplicate error for chat messages for upload-only messages (#31539) 2025-02-27 17:17:36 +10:00
engine.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
group_extension.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
guardian_extensions.rb FEATURE: Add setting to prevent anonymous users from using chat (#31842) 2025-03-21 13:32:52 +03:00
inline_onebox_handler.rb FEATURE: Chat thread inline oneboxes (#30834) 2025-01-20 10:08:38 +10:00
mailer.rb DEV: add user email to chat summary mailer (#32917) 2025-05-26 19:19:16 +04:00
message_blocks_validator.rb DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
message_bookmarkable.rb FIX: Show deleted bookmark reminders in user bookmarks menu (#25905) 2024-02-29 09:03:49 +10:00
message_mover.rb DEV: Provide user input to services using params key 2024-10-25 09:57:59 +02:00
message_processor.rb FIX: uploads with no extension causing error in message processor (#35656) 2025-10-28 16:22:37 +04:00
message_rate_limiter.rb
message_reactor.rb
messages_exporter.rb FIX: Chat messages exporter (#25461) 2024-01-30 18:37:11 +04:00
notification_consolidation_extension.rb FEATURE: Add ability to watch chat threads (#28639) 2024-09-02 16:45:55 +04:00
notification_levels.rb FIX: Chat NotificationLevels extension breaking in prod (#21484) 2023-05-10 18:46:06 +02:00
notifier.rb FIX: use group name in unreachable mention warning (#34174) 2025-08-14 09:33:51 +04:00
onebox_handler.rb DEV: Revert guardian changes (#24742) 2023-12-06 16:37:32 +10:00
outgoing_web_hook_extension.rb FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
parsed_mentions.rb DEV: better highlighting of mentions (#28403) 2024-08-20 14:37:28 +02:00
plugin_instance_extension.rb
post_notification_handler.rb DEV: Hand-pick Rails/WhereNot autofixes (#35117) 2025-10-03 13:29:22 +02:00
review_queue.rb FIX: Create a reviewable when flagging a chat message for 'something else' (#23264) 2023-08-25 17:38:27 +08:00
reviewable_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
secure_uploads_compatibility.rb
seeder.rb PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00
slack_compatibility.rb
statistics.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
transcript_service.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
user_extension.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
user_notifications_extension.rb FIX: delayed chat summary email (#31255) 2025-02-24 14:25:52 +04:00
user_option_extension.rb DEV: Fix chat user option extension enum check (#34917) 2025-09-23 20:30:47 +02:00