Show More
@@ -130,7 +130,7 b' def bbcode_extended(markup):' | |||
|
130 | 130 | parser = bbcode.Parser() |
|
131 | 131 | parser.add_formatter('post', render_reflink, strip=True) |
|
132 | 132 | parser.add_simple_formatter('quote', |
|
133 | u'<span class="multiquote">%(value)s</span>') | |
|
133 | u'<span class="multiquote">%(value)s</span>', strip=True) | |
|
134 | 134 | parser.add_simple_formatter('comment', |
|
135 | 135 | u'<span class="comment">//%(value)s</span>') |
|
136 | 136 | parser.add_simple_formatter('spoiler', |
@@ -36,7 +36,7 b" NO_IP = '0.0.0.0'" | |||
|
36 | 36 | # TODO Real user agent should be saved instead of this |
|
37 | 37 | UNKNOWN_UA = '' |
|
38 | 38 | |
|
39 |
REGEX_REPLY = re.compile(r' |
|
|
39 | REGEX_REPLY = re.compile(ur'\[post\](\d+)\[/post\]') | |
|
40 | 40 | |
|
41 | 41 | logger = logging.getLogger(__name__) |
|
42 | 42 | |
@@ -119,7 +119,7 b' class PostManager(models.Manager):' | |||
|
119 | 119 | Connects replies to a post to show them as a reflink map |
|
120 | 120 | """ |
|
121 | 121 | |
|
122 |
for reply_number in re.finditer(REGEX_REPLY, post.text.r |
|
|
122 | for reply_number in re.finditer(REGEX_REPLY, post.text.raw): | |
|
123 | 123 | post_id = reply_number.group(1) |
|
124 | 124 | ref_post = self.filter(id=post_id) |
|
125 | 125 | if ref_post.count() > 0: |
General Comments 0
You need to be logged in to leave comments.
Login now