zulip/templates
Eeshan Garg af56df7723 webhooks: Enable custom topics and default PM notifications.
This commit adds a generic function called check_send_webhook_message
that does the following:
* If a stream is specified in the webhook URL, it sends a stream
  message, otherwise sends a PM to the owner of the bot.
* In the case of a stream message, if a custom topic is specified
  in the webhook URL, it uses that topic as the subject of the
  stream message.

Also, note that we need not test this anywhere except for the
helloworld webhook. Since helloworld is our default example for
webhooks, it is here to stay and it made sense that tests for a
generic function such as check_send_webhook_message be tested
with an actual generic webhook!

Fixes #8607.
2018-03-16 11:34:20 -07:00
..
analytics activity: Add a link to copy list of realm admins. 2018-02-12 08:55:45 -08:00
confirmation Fix styling for confirmation error links. 2018-02-28 12:50:58 -08:00
corporate Fix various typos. 2017-11-09 16:26:38 +01:00
tests jinja2: Use function interface for render_markdown_path. 2017-07-31 14:54:54 -07:00
zerver webhooks: Enable custom topics and default PM notifications. 2018-03-16 11:34:20 -07:00
zilencer /billing/: Rename "payment.html" => "billing.html". 2018-01-29 17:24:28 -08:00
.gitignore Add a tool to draw the Django template inheritance graph 2012-10-16 01:33:15 -04:00
404.html Make 4xx and 5xx pages full screen. 2017-08-08 11:58:22 -07:00
500.html Make 4xx and 5xx pages full screen. 2017-08-08 11:58:22 -07:00