Browse Source

Update jumps.py

lizaoji 11 years ago
parent
commit
2b384a7add
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/apps/privatethreads/jumps.py

+ 1 - 1
misago/apps/privatethreads/jumps.py

@@ -52,7 +52,7 @@ class ShowPostReportView(ShowPostReportBaseView, TypeMixin):
 
 class InviteUserView(JumpView, TypeMixin):
     def make_jump(self):
-        username = slugify(self.request.POST.get('username', '').strip())
+        username = slugify(self.request.POST.get('username', '').strip()).replace('-', '')
         if not username:
             messages.error(self.request, _('You have to enter name of user you want to invite to thread.'), 'threads')
             return self.retreat_redirect()