From d77834bde5bef508cf0180bdf90aa62a36671c17 Mon Sep 17 00:00:00 2001 From: hernani Date: Mon, 12 Apr 2010 13:22:26 +0000 Subject: [PATCH] in reply comments were causing errors git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@28 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/models/meta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/models/meta.py b/forum/models/meta.py index baf9a0e..538d6a2 100644 --- a/forum/models/meta.py +++ b/forum/models/meta.py @@ -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 -- 2.39.5