mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 05:04:22 +08:00
3f1024de76
This will be used when we move the channel creation for DMs to happen when we first send a message in a DM channel to avoid a double-request. For now we can just have a new API endpoint for creating this that the existing frontend code can use, that uses the new service pattern. This also uses the new policy pattern for services where the policy can be defined in a class so a more dynamic reason for the policy failing can be sent to the controller. Co-authored-by: Loïc Guitaut <loic@discourse.org> |
||
---|---|---|
.. | ||
chat/direct_message_channel | ||
policy_base.rb |