|
a/Allura/allura/model/discuss.py |
|
b/Allura/allura/model/discuss.py |
|
... |
|
... |
442 |
self.acl, author.project_role()._id, 'unmoderated_post')
|
442 |
self.acl, author.project_role()._id, 'unmoderated_post')
|
443 |
g.post_event('discussion.new_post', self.thread_id, self._id)
|
443 |
g.post_event('discussion.new_post', self.thread_id, self._id)
|
444 |
artifact = self.thread.artifact or self.thread
|
444 |
artifact = self.thread.artifact or self.thread
|
445 |
Notification.post(artifact, 'message', post=self)
|
445 |
Notification.post(artifact, 'message', post=self)
|
446 |
session(self).flush()
|
446 |
session(self).flush()
|
|
|
447 |
if artifact != self.discussion:
|
|
|
448 |
Notification.post(self.discussion, 'message', post=self)
|
|
|
449 |
session(self).flush()
|
447 |
self.thread.last_post_date = max(
|
450 |
self.thread.last_post_date = max(
|
448 |
self.thread.last_post_date,
|
451 |
self.thread.last_post_date,
|
449 |
self.mod_date)
|
452 |
self.mod_date)
|
450 |
self.thread.update_stats()
|
453 |
self.thread.update_stats()
|
451 |
self.discussion.update_stats()
|
454 |
self.discussion.update_stats()
|