Switch to unified view

a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
...
...
162
    def post(self, text, message_id=None, parent_id=None, **kw):
162
    def post(self, text, message_id=None, parent_id=None, **kw):
163
        require(has_artifact_access('post', self))
163
        require(has_artifact_access('post', self))
164
        if self.artifact_reference.artifact_id is not None:
164
        if self.artifact_reference.artifact_id is not None:
165
            if self.artifact:
165
            if self.artifact:
166
                self.artifact.subscribe()
166
                self.artifact.subscribe()
167
                for u in ProjectRole.query.find({'name':'Admin'}).first().users_with_role():
168
                    self.artifact.subscribe(user=u)
169
        if message_id is None: message_id = h.gen_message_id()
167
        if message_id is None: message_id = h.gen_message_id()
170
        parent = parent_id and self.post_class().query.get(_id=parent_id)
168
        parent = parent_id and self.post_class().query.get(_id=parent_id)
171
        slug, full_slug = self.post_class().make_slugs(parent)
169
        slug, full_slug = self.post_class().make_slugs(parent)
172
        kwargs = dict(
170
        kwargs = dict(
173
            discussion_id=self.discussion_id,
171
            discussion_id=self.discussion_id,