User generated local paths
This commit is contained in:
parent
d821a08cff
commit
dc68fdd53e
14 changed files with 50 additions and 38 deletions
|
@ -5,11 +5,10 @@ from django.urls import path, re_path
|
|||
|
||||
from bookwyrm import incoming, outgoing, views, settings, wellknown
|
||||
from bookwyrm import view_actions as actions
|
||||
from bookwyrm.utils import regex
|
||||
|
||||
username_regex = r'(?P<username>[\w\-_\.]+@[\w\-\_\.]+)'
|
||||
localname_regex = r'(?P<username>[\w\-_\.]+)'
|
||||
user_path = r'^user/%s' % username_regex
|
||||
local_user_path = r'^user/%s' % localname_regex
|
||||
user_path = r'^user/(?P<username>%s)' % regex.username
|
||||
local_user_path = r'^user/(?P<username>%s)' % regex.localname
|
||||
|
||||
status_types = [
|
||||
'status',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue