Robin Ward
7fee3c61de
Support for custom messages and redirects when creating posts ( #8434 )
...
* 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
2019-11-29 09:30:54 -05:00
..
2018-07-19 17:35:10 +08:00
2018-07-19 17:35:10 +08:00
2018-12-05 21:56:18 +01:00
2019-05-16 15:15:37 -03:00
2019-05-16 15:15:37 -03:00
2019-05-15 22:22:20 +02:00
2019-03-18 21:09:13 +01:00
2019-10-18 01:49:26 +02:00
2019-05-21 08:58:57 +02:00
2018-07-16 11:31:23 +08:00
2019-03-22 12:46:36 +01:00
2019-03-21 13:16:55 +01:00
2019-11-27 17:42:22 -07:00
2019-01-12 12:08:13 +00:00
2019-06-14 14:54:20 +02:00
2019-06-06 10:47:10 +02:00
2019-06-06 10:47:10 +02:00
2019-10-28 17:23:30 -04:00
2019-10-11 15:33:34 -04:00
2019-05-07 13:54:12 +03:00
2019-07-24 22:01:08 +02:00
2019-05-29 09:26:32 +08:00
2019-04-19 09:18:01 +02:00
2019-10-11 11:37:44 -04:00
2019-06-11 10:05:57 +08:00
2019-11-29 09:30:54 -05:00
2019-07-24 22:01:08 +02:00
2019-07-24 22:01:08 +02:00
2019-01-10 11:06:01 +01:00
2018-07-19 13:52:48 +02:00
2018-07-19 13:52:48 +02:00
2019-06-06 10:47:10 +02:00
2019-07-24 22:01:08 +02:00
2019-08-16 11:47:03 +02:00
2019-10-11 15:41:19 -04:00
2019-07-24 22:01:08 +02:00
2018-07-26 12:51:16 +02:00
2019-07-03 13:45:03 +02:00
2019-07-03 13:45:03 +02:00
2019-07-24 22:01:08 +02:00
2019-07-24 22:01:08 +02:00
2019-02-21 13:44:25 +08:00
2019-07-24 22:01:08 +02:00
2019-07-24 22:01:08 +02:00
2019-11-18 14:59:28 +02:00
2019-06-14 14:54:20 +02:00
2019-04-17 22:44:30 -04:00
2019-06-14 14:54:20 +02:00
2018-07-19 16:38:37 +02:00
2018-07-19 16:38:37 +02:00
2019-01-10 11:06:01 +01:00
2019-02-06 23:55:05 +02:00
2018-12-10 15:44:05 +00:00
2018-07-19 16:38:37 +02:00
2018-07-26 12:51:16 +02:00
2018-07-26 12:51:16 +02:00
2018-07-19 16:38:37 +02:00
2018-07-26 12:51:16 +02:00
2018-07-19 16:38:37 +02:00
2018-07-19 16:38:37 +02:00
2018-07-19 16:38:37 +02:00
2019-10-30 09:48:24 -04:00
2019-06-14 14:54:20 +02:00
2019-06-14 14:54:20 +02:00
2018-07-26 12:51:16 +02:00
2018-07-19 16:40:12 +02:00
2018-07-19 16:40:12 +02:00
2018-07-19 16:40:12 +02:00
2018-07-19 16:40:12 +02:00
2019-10-28 17:29:14 +01:00
2018-07-19 16:40:12 +02:00
2019-06-14 14:54:20 +02:00
2019-07-03 16:32:27 +02:00
2019-06-06 10:47:10 +02:00
2019-07-22 10:55:49 -04:00
2019-03-29 08:59:02 +08:00
2019-11-14 10:40:26 +10:00
2019-02-26 14:15:25 +01:00
2019-06-06 10:47:10 +02:00
2019-06-06 10:47:10 +02:00
2019-10-01 19:08:41 -07:00
2018-07-19 16:40:12 +02:00
2019-06-06 10:47:10 +02:00
2019-10-11 15:33:34 -04:00
2019-02-26 16:43:39 +05:30
2019-11-18 16:44:08 +11:00
2019-10-08 14:15:08 +03:00
2019-07-29 10:28:42 +01:00
2019-07-24 22:01:08 +02:00
2019-06-06 10:47:10 +02:00
2018-12-31 17:17:22 +05:30
2019-06-06 10:47:10 +02:00
2019-07-29 11:04:38 +08:00
2018-07-19 16:40:12 +02:00
2019-04-10 19:00:39 +02:00
2019-05-16 15:15:37 -03:00
2019-08-30 13:40:12 -04:00
2019-11-25 14:31:47 +02:00
2019-06-27 11:15:35 +02:00
2018-06-15 17:03:24 +02:00