Trigger the title updated webhook event whenever a title is changed (#2823)
* wip: trigger the title updated webhook event whenever a title is changed * Commit updated API documentation * fix: add STREAM_TITLE_CHANGED to list of valid events * feat: Add support for STREAM_TITLE_CHANGED webhook event on admin dashboard * fix: transmit webhook event after stream has changed to fix race conditions where older title was sent --------- Co-authored-by: Owncast <owncast@owncast.online>
This commit is contained in:
@@ -42,6 +42,11 @@ const availableEvents = {
|
||||
},
|
||||
STREAM_STARTED: { name: 'Stream started', description: 'When a stream starts', color: 'orange' },
|
||||
STREAM_STOPPED: { name: 'Stream stopped', description: 'When a stream stops', color: 'cyan' },
|
||||
STREAM_TITLE_UPDATED: {
|
||||
name: 'Stream title updated',
|
||||
description: 'When a stream title is changed',
|
||||
color: 'yellow',
|
||||
},
|
||||
};
|
||||
|
||||
function convertEventStringToTag(eventString: string) {
|
||||
|
||||
Reference in New Issue
Block a user