mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
75b81b6854
Initially, the ChatMention model / db table was introduced to better support notifications (see discourse/discourse-chat@0801d10). That means that currently, we create a new chat_mention record only if a user will be notified about the mention. Now we plan to start using the ChatMention model in other scenarios (for example for implementing user status on mentions) so we need to always create a new record in the chat_mention table. This PR does the first step into that direction by decoupling the logic for extracting and expanding mentions from the code related to notifications. This doesn't change any behavior, only extracts code from ChatNotifier. |
||
---|---|---|
.. | ||
discourse_dev | ||
email_controller_helper | ||
extensions | ||
onebox/templates | ||
tasks | ||
validators | ||
chat_channel_archive_service.rb | ||
chat_channel_fetcher.rb | ||
chat_channel_hashtag_data_source.rb | ||
chat_channel_membership_manager.rb | ||
chat_mailer.rb | ||
chat_message_bookmarkable.rb | ||
chat_message_creator.rb | ||
chat_message_mentions.rb | ||
chat_message_processor.rb | ||
chat_message_rate_limiter.rb | ||
chat_message_reactor.rb | ||
chat_message_updater.rb | ||
chat_notifier.rb | ||
chat_review_queue.rb | ||
chat_seeder.rb | ||
chat_statistics.rb | ||
chat_transcript_service.rb | ||
direct_message_channel_creator.rb | ||
duplicate_message_validator.rb | ||
endpoint.rb | ||
guardian_extensions.rb | ||
message_mover.rb | ||
post_notification_handler.rb | ||
secure_uploads_compatibility.rb | ||
slack_compatibility.rb | ||
steps_inspector.rb |