Always pass follow/unfollow parameter using POST.

Fixes buttons in followers list.
This commit is contained in:
Adam Kelly
2020-02-22 18:00:43 +00:00
parent c889fab6d1
commit 730c49a2b6
3 changed files with 12 additions and 8 deletions

View File

@ -57,8 +57,8 @@ urlpatterns = [
re_path(r'^comment/?$', views.comment),
re_path(r'^favorite/(?P<status_id>\d+)/?$', views.favorite),
re_path(r'^shelve/?$', views.shelve),
re_path(r'^follow/(?P<username>[\w@\.-]+)/?$', views.follow),
re_path(r'^unfollow/(?P<username>[\w@\.-]+)/?$', views.unfollow),
re_path(r'^follow/?$', views.follow),
re_path(r'^unfollow/?$', views.unfollow),
re_path(r'^search/?$', views.search),
re_path(r'^edit_profile/?$', views.edit_profile),