##// END OF EJS Templates
Show thread link and title in the search results and notifications
neko259 -
r1172:353ef0ac default
parent child Browse files
Show More
@@ -264,7 +264,7 b' class Post(models.Model, Viewable):'
264 })
264 })
265
265
266 def get_search_view(self, *args, **kwargs):
266 def get_search_view(self, *args, **kwargs):
267 return self.get_view(args, kwargs)
267 return self.get_view(need_op_data=True, *args, **kwargs)
268
268
269 def get_first_image(self) -> PostImage:
269 def get_first_image(self) -> PostImage:
270 return self.images.earliest('id')
270 return self.images.earliest('id')
@@ -19,7 +19,7 b''
19 {% endif %}
19 {% endif %}
20
20
21 {% for post in page.object_list %}
21 {% for post in page.object_list %}
22 {% post_view post %}
22 {% post_view post need_op_data=True %}
23 {% endfor %}
23 {% endfor %}
24
24
25 {% if page.has_next %}
25 {% if page.has_next %}
General Comments 0
You need to be logged in to leave comments. Login now