* Support for custom messages and redirects when creating posts When a post/topic is created Discourse serializes a `NewPostResult` object. Normally this contains a status like `created_post` or errors describing why the post could not be created. There are times when a plugin might want to take the inputted post and do something in the background. In this case, the plugin can return a custom `message` and `route_to` attribute in the `NewPostResult`. If present, the message will be displayed in an alert, and when "Ok" is clicked the user will be routed to the new URL. * Destroy the draft in parallel |
||
|---|---|---|
| .. | ||
| admin_plugin_serializer_spec.rb | ||
| admin_user_list_serializer_spec.rb | ||
| basic_group_serializer_spec.rb | ||
| basic_group_user_serializer_spec.rb | ||
| basic_post_serializer_spec.rb | ||
| basic_user_serializer_spec.rb | ||
| category_detailed_serializer_spec.rb | ||
| category_serializer_spec.rb | ||
| category_upload_serializer_spec.rb | ||
| current_user_serializer_spec.rb | ||
| group_show_serializer_spec.rb | ||
| new_post_result_serializer_spec.rb | ||
| notification_serializer_spec.rb | ||
| post_revision_serializer_spec.rb | ||
| post_serializer_spec.rb | ||
| reviewable_flagged_post_serializer_spec.rb | ||
| reviewable_queued_post_serializer_spec.rb | ||
| reviewable_serializer_spec.rb | ||
| reviewable_user_serializer_spec.rb | ||
| single_sign_on_record_serializer_spec.rb | ||
| site_serializer_spec.rb | ||
| suggested_topic_serializer_spec.rb | ||
| tag_group_serializer_spec.rb | ||
| theme_serializer_spec.rb | ||
| topic_link_serializer_spec.rb | ||
| topic_list_item_serializer_spec.rb | ||
| topic_list_serializer_spec.rb | ||
| topic_view_posts_serializer_spec.rb | ||
| topic_view_serializer_spec.rb | ||
| upload_serializer_spec.rb | ||
| user_auth_token_serializer_spec.rb | ||
| user_serializer_spec.rb | ||
| user_summary_serializer_spec.rb | ||
| web_hook_post_serializer_spec.rb | ||
| web_hook_topic_view_serializer_spec.rb | ||
| web_hook_user_serializer_spec.rb | ||