|
a/Allura/allura/model/discuss.py |
|
b/Allura/allura/model/discuss.py |
|
... |
|
... |
223 |
p.commit(update_stats=False)
|
223 |
p.commit(update_stats=False)
|
224 |
self.num_replies += 1
|
224 |
self.num_replies += 1
|
225 |
if not self.first_post:
|
225 |
if not self.first_post:
|
226 |
self.first_post_id = p._id
|
226 |
self.first_post_id = p._id
|
227 |
link = None
|
227 |
link = None
|
228 |
if self.app.tool_label == 'Tickets':
|
228 |
if self.app.tool_label.lower() == 'tickets':
|
229 |
link = self.artifact.url() + p.url_paginated()[len(self.url()):]
|
229 |
link = p.url_paginated()
|
230 |
if self.ref:
|
230 |
if self.ref:
|
231 |
Feed.post(self.primary(), title=p.subject, description=p.text, link=link)
|
231 |
Feed.post(self.primary(), title=p.subject, description=p.text, link=link)
|
232 |
return p
|
232 |
return p
|
233 |
|
233 |
|
234 |
def post(self, text, message_id=None, parent_id=None,
|
234 |
def post(self, text, message_id=None, parent_id=None,
|