Capture parameter from username_regex.

This commit is contained in:
Adam Kelly 2020-02-23 09:07:00 +00:00
parent d2e51f05e8
commit 38ec3c554b

View file

@ -6,7 +6,7 @@ from django.urls import path, re_path
from fedireads import incoming, outgoing, views, settings, wellknown
from fedireads import view_actions as actions
username_regex = r'[\w@\.-]+'
username_regex = r'(?P<username>[\w@\.-]+)'
localname_regex = r'(?P<username>[\w\.-]+)'
user_path = r'^user/%s' % username_regex
local_user_path = r'^user/%s' % localname_regex