aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/admin/hooks.go
Commit message (Collapse)AuthorAgeFilesLines
* Move almost all functions' parameter db.Engine to context.Context (#19748)Lunny Xiao2022-05-201-2/+2
| | | | * Move almost all functions' parameter db.Engine to context.Context * remove some unnecessary wrap functions
* Only send webhook events to active system webhooks and only deliver to ↵zeripath2022-03-281-1/+2
| | | | | | | | | | | | | | | | | active hooks (#19234) There is a bug in the system webhooks whereby the active state is not checked when webhooks are prepared and there is a bug that deactivating webhooks do not prevent queued deliveries. * Only add SystemWebhooks to the prepareWebhooks list if they are active * At the time of delivery if the underlying webhook is not active mark it as "delivered" but with a failed delivery so it does not get delivered. Fix #19220 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Move webhook into models/webhook/ (#17579)Lunny Xiao2021-11-101-4/+4
|
* Rename context.Query to context.Form (#16562)Lunny Xiao2021-07-291-1/+1
|
* Refactor routers directory (#15800)Lunny Xiao2021-06-091-0/+72
* refactor routers directory * move func used for web and api to common * make corsHandler a function to prohibit side efects * rm unused func Co-authored-by: 6543 <6543@obermui.de>