##// END OF EJS Templates
Removed obsolete parameter from post view tag
neko259 -
r988:67afa53e default
parent child Browse files
Show More
@@ -324,8 +324,8 b' class Post(models.Model, Viewable):'
324 324 are same for every post and don't need to be computed over and over.
325 325 """
326 326
327 thread = self.get_thread()
327 328 is_opening = kwargs.get(PARAMETER_IS_OPENING, self.is_opening())
328 thread = kwargs.get(PARAMETER_THREAD, self.get_thread())
329 329 can_bump = kwargs.get(PARAMETER_BUMPABLE, thread.can_bump())
330 330
331 331 if is_opening:
@@ -34,7 +34,7 b''
34 34 {% with can_bump=thread.can_bump %}
35 35 {% for post in thread.get_replies %}
36 36 {% with is_opening=forloop.first %}
37 {% post_view post moderator=moderator is_opening=is_opening thread=thread bumpable=can_bump opening_post_id=opening_post.id %}
37 {% post_view post moderator=moderator is_opening=is_opening bumpable=can_bump opening_post_id=opening_post.id %}
38 38 {% endwith %}
39 39 {% endfor %}
40 40 {% endwith %}
@@ -53,10 +53,7 b' def post_view(post, moderator=False, nee'
53 53 else:
54 54 is_opening = post.is_opening()
55 55
56 if 'thread' in kwargs:
57 thread = kwargs['thread']
58 else:
59 thread = post.get_thread()
56 thread = post.get_thread()
60 57
61 58 if 'can_bump' in kwargs:
62 59 can_bump = kwargs['can_bump']
General Comments 0
You need to be logged in to leave comments. Login now