Skip to content

Commit 9a6c6a5

Browse files
committed
refactor: use developer username on webhook
* add event type to webhook notifier payload
1 parent 124b6a2 commit 9a6c6a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tilex/notifications/notifiers/webhook.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ defmodule Tilex.Notifications.Notifiers.Webhook do
66
def handle_post_created(post, developer, channel, url) do
77
if webhook_url() do
88
payload = %{
9+
event: "post.created",
910
til: %{
1011
title: post.title,
11-
developer_name: Developer.twitter_handle(developer),
12+
author_name: developer.username,
1213
channel: channel.twitter_hashtag,
1314
post_url: url
1415
}

0 commit comments

Comments
 (0)