mirror of https://github.com/jlelse/GoBlog
Fix webmention router
This commit is contained in:
parent
88f26ef3c6
commit
869b505a39
|
@ -52,7 +52,10 @@ func (a *goBlog) activityPubRouter(r chi.Router) {
|
||||||
|
|
||||||
// Webmentions
|
// Webmentions
|
||||||
func (a *goBlog) webmentionsRouter(r chi.Router) {
|
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
|
// Endpoint
|
||||||
r.Post("/", a.handleWebmention)
|
r.Post("/", a.handleWebmention)
|
||||||
// Authenticated routes
|
// Authenticated routes
|
||||||
|
@ -65,7 +68,6 @@ func (a *goBlog) webmentionsRouter(r chi.Router) {
|
||||||
r.Post("/reverify", a.webmentionAdminReverify)
|
r.Post("/reverify", a.webmentionAdminReverify)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Notifications
|
// Notifications
|
||||||
func (a *goBlog) notificationsRouter(r chi.Router) {
|
func (a *goBlog) notificationsRouter(r chi.Router) {
|
||||||
|
|
Loading…
Reference in New Issue