##// END OF EJS Templates
Fixed reflink parsing
neko259 -
r556:10b29819 1.7-dev
parent child Browse files
Show More
@@ -66,11 +66,11 b' class ReflinkPattern(Pattern):'
66
66
67 post = posts[0]
67 post = posts[0]
68 if not post.is_opening():
68 if not post.is_opening():
69 link = reverse(boards.views.thread, kwargs={
69 link = reverse('thread', kwargs={
70 'post_id': post.thread_new.get_opening_post().id})\
70 'post_id': post.thread_new.get_opening_post().id})\
71 + '#' + post_id
71 + '#' + post_id
72 else:
72 else:
73 link = reverse(boards.views.thread, kwargs={'post_id': post_id})
73 link = reverse('thread', kwargs={'post_id': post_id})
74
74
75 ref_element.set('href', link)
75 ref_element.set('href', link)
76 ref_element.text = m.group(2)
76 ref_element.text = m.group(2)
@@ -22,13 +22,6 b' from boards import authors'
22 import neboard
22 import neboard
23
23
24
24
25 BAN_REASON_SPAM = 'Autoban: spam bot'
26
27 DEFAULT_PAGE = 1
28
29
30
31
32 @transaction.atomic
25 @transaction.atomic
33 def tag_subscribe(request, tag_name):
26 def tag_subscribe(request, tag_name):
34 """Add tag to favorites"""
27 """Add tag to favorites"""
General Comments 0
You need to be logged in to leave comments. Login now