DEV: Improve support for plugins. (#7332)

* DEV: Allow NewPostManager handlers handle PMs.
* DEV: Add custom fields topic option to PostCreator.
* DEV: Add topic_id to serializer data.
* DEV: Wrap topic title from notification item in a span.
This commit is contained in:
Dan Ungureanu
2019-05-25 16:53:03 +03:00
committed by GitHub
parent 6398ded798
commit da39d66e83
10 changed files with 29 additions and 18 deletions

View File

@ -37,6 +37,9 @@ class TopicCreator
def create
topic = Topic.new(setup_topic_params)
setup_tags(topic)
if fields = @opts[:custom_fields]
topic.custom_fields = fields
end
DiscourseEvent.trigger(:before_create_topic, topic, self)