Fix webmention router

This commit is contained in:
Jan-Lukas Else 2021-07-27 13:01:35 +02:00
parent 88f26ef3c6
commit 869b505a39
1 changed files with 14 additions and 12 deletions

View File

@ -52,7 +52,10 @@ func (a *goBlog) activityPubRouter(r chi.Router) {
// Webmentions
func (a *goBlog) webmentionsRouter(r chi.Router) {
if wm := a.cfg.Webmention; wm != nil && !wm.DisableReceiving {
if wm := a.cfg.Webmention; wm != nil && wm.DisableReceiving {
// Disabled
return
}
// Endpoint
r.Post("/", a.handleWebmention)
// Authenticated routes
@ -65,7 +68,6 @@ func (a *goBlog) webmentionsRouter(r chi.Router) {
r.Post("/reverify", a.webmentionAdminReverify)
})
}
}
// Notifications
func (a *goBlog) notificationsRouter(r chi.Router) {