Update kb vote function

This commit is contained in:
Sam Splunks
2024-12-05 09:47:23 +00:00
parent f710c07927
commit 8d2b09bb11
4 changed files with 6 additions and 7 deletions

View File

@@ -251,7 +251,7 @@ if helpdesk_settings.HELPDESK_KB_ENABLED:
path("kb/", kb.index, name="kb_index"),
re_path(r"^kb/(?P<slug>[A-Za-z0-9_-]+)/$",
kb.category, name="kb_category"),
path("kb/<int:item>/vote/", kb.vote, name="kb_vote"),
path("kb/<int:item>/vote/(?P<vote>up|down)/", kb.vote, name="kb_vote"),
re_path(
r"^kb_iframe/(?P<slug>[A-Za-z0-9_-]+)/$",
kb.category_iframe,