diff --git a/fedireads/urls.py b/fedireads/urls.py index 18cdb27c..349bca0d 100644 --- a/fedireads/urls.py +++ b/fedireads/urls.py @@ -43,7 +43,7 @@ urlpatterns = [ re_path(r'^login/?$', views.user_login), re_path(r'^logout/?$', views.user_logout), # this endpoint is both ui and fed depending on Accept type - re_path(r'^user/(?P[\w@\.]+)/?$', views.user_profile), + re_path(r'^user/(?P[\w@\.-]+)/?$', views.user_profile), re_path(r'^user/(?P\w+)/edit/?$', views.user_profile_edit), re_path(r'^book/(?P\w+)/?$', views.book_page), re_path(r'^author/(?P\w+)/?$', views.author_page), @@ -56,8 +56,8 @@ urlpatterns = [ r'^shelve/(?P\w+)/(?P[\w-]+)/(?P\d+)/?$', views.shelve ), - re_path(r'^follow/(?P[\w@\.]+)/?$', views.follow), - re_path(r'^unfollow/(?P[\w@\.]+)/?$', views.unfollow), + re_path(r'^follow/(?P[\w@\.-]+)/?$', views.follow), + re_path(r'^unfollow/(?P[\w@\.-]+)/?$', views.unfollow), re_path(r'^search/?$', views.search), re_path(r'^edit_profile/?$', views.edit_profile),