|
a/Allura/allura/model/discuss.py |
|
b/Allura/allura/model/discuss.py |
|
... |
|
... |
208 |
if not self.first_post:
|
208 |
if not self.first_post:
|
209 |
self.first_post_id = p._id
|
209 |
self.first_post_id = p._id
|
210 |
link = None
|
210 |
link = None
|
211 |
if self.app.tool_label == 'Tickets':
|
211 |
if self.app.tool_label == 'Tickets':
|
212 |
link = self.artifact.url() + p.url_paginated()[len(self.url()):]
|
212 |
link = self.artifact.url() + p.url_paginated()[len(self.url()):]
|
213 |
if self.ref:
|
213 |
if self.ref:
|
214 |
Feed.post(self.ref.artifact, title=p.subject, description=p.text, link=link)
|
|
|
215 |
return p
|
|
|
216 |
Feed.post(self, title=p.subject, description=p.text, link=link)
|
214 |
Feed.post(self.primary(), title=p.subject, description=p.text, link=link)
|
217 |
return p
|
215 |
return p
|
218 |
|
216 |
|
219 |
def post(self, text, message_id=None, parent_id=None,
|
217 |
def post(self, text, message_id=None, parent_id=None,
|
220 |
timestamp=None, ignore_security=False, **kw):
|
218 |
timestamp=None, ignore_security=False, **kw):
|
221 |
if not ignore_security:
|
219 |
if not ignore_security:
|