Explorar o código

Merge branch 'master' of https://github.com/2DU/opennamu

Surplus_Up (2DU) %!s(int64=6) %!d(string=hai) anos
pai
achega
886f6366b7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      route/tool/set_mark/namu.py

+ 2 - 0
route/tool/set_mark/namu.py

@@ -785,6 +785,8 @@ def namu(conn, data, title, main_num):
                 else:
                     data = re.sub('\[\[((?:(?!\[\[|\]\]).)+)\]\]', '<a id="not_thing" href="/w/' + tool.url_pas(file_alt) + '">' + file_alt + '</a>', data, 1)
             elif category_re.search(main_link):
+                main_link = category_re.sub('category:', main_link)
+                
                 if re.search('#blur', main_link):
                     see_link = 'Hidden'
                     link_id = 'id="inside"'