mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 00:04:59 +08:00

- moves the onebox logic away from `plugin.rb` to a new `onebox_handler` lib - splits the `discourse_chat_message` template into two: one for channels, and one for messages - refactors the logic code slightly to send only the necessary arguments to each template This commit shouldn't change end-user behavior.