|
a/Allura/allura/controllers/discuss.py |
|
b/Allura/allura/controllers/discuss.py |
|
... |
|
... |
165 |
self.thread.num_views += 1
|
165 |
self.thread.num_views += 1
|
166 |
M.session.artifact_orm_session._get().skip_mod_date = True # the update to num_views shouldn't affect it
|
166 |
M.session.artifact_orm_session._get().skip_mod_date = True # the update to num_views shouldn't affect it
|
167 |
count = self.thread.query_posts(page=page, limit=int(limit)).count()
|
167 |
count = self.thread.query_posts(page=page, limit=int(limit)).count()
|
168 |
return dict(discussion=self.thread.discussion,
|
168 |
return dict(discussion=self.thread.discussion,
|
169 |
thread=self.thread,
|
169 |
thread=self.thread,
|
170 |
page=page,
|
170 |
page=int(page),
|
171 |
count=count,
|
171 |
count=int(count),
|
172 |
limit=limit,
|
172 |
limit=int(limit),
|
173 |
show_moderate=kw.get('show_moderate'))
|
173 |
show_moderate=kw.get('show_moderate'))
|
174 |
|
174 |
|
175 |
@h.vardec
|
175 |
@h.vardec
|
176 |
@expose()
|
176 |
@expose()
|
177 |
@require_post()
|
177 |
@require_post()
|