##// END OF EJS Templates
Removed unnecessary params from post_view template tag
neko259 -
r1032:5204c74d default
parent child Browse files
Show More
@@ -51,19 +51,14 b' def post_view(post, moderator=False, nee'
51 Get post
51 Get post
52 """
52 """
53
53
54 if 'is_opening' in kwargs:
55 is_opening = kwargs['is_opening']
56 else:
57 is_opening = post.is_opening()
58
59 thread = post.get_thread()
54 thread = post.get_thread()
55 is_opening = post.is_opening()
56 can_bump = thread.can_bump()
60
57
61 if 'can_bump' in kwargs:
58 if is_opening:
62 can_bump = kwargs['can_bump']
59 opening_post_id = post.id
63 else:
60 else:
64 can_bump = thread.can_bump()
61 opening_post_id = thread.get_opening_post_id()
65
66 opening_post_id = thread.get_opening_post_id()
67
62
68 return {
63 return {
69 'post': post,
64 'post': post,
General Comments 0
You need to be logged in to leave comments. Login now