User generated local paths
This commit is contained in:
@ -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',
|
||||
|
Reference in New Issue
Block a user