]> git.openstreetmap.org Git - osqa.git/commitdiff
in reply comments were causing errors
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 12 Apr 2010 13:22:26 +0000 (13:22 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 12 Apr 2010 13:22:26 +0000 (13:22 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@28 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/meta.py

index baf9a0e0cf8db890a933fec327e66368fd74b835..538d6a210265f4c895bf156507cc1f67437b613e 100644 (file)
@@ -115,7 +115,7 @@ class Comment(MetaContent, UserContent, DeletableContent):
     def is_reply_to(self, user):
         inreply = re.search('@\w+', self.comment)
         if inreply is not None:
-            return user.username.startswith(inreply[1:])
+            return user.username.startswith(inreply.group(0))
 
         return False