diff --git a/boards/views.py b/boards/views.py --- a/boards/views.py +++ b/boards/views.py @@ -549,7 +549,7 @@ def _remove_invalid_links(text): post_id = reply_number.group(1) post = Post.objects.filter(id=post_id) if not post.exists(): - text = string.replace(text, '>>' + id, id) + text = string.replace(text, '>>' + post_id, post_id) return text