Switch to side-by-side view
--- a/pyforge/pyforge/model/discuss.py +++ b/pyforge/pyforge/model/discuss.py @@ -132,6 +132,8 @@ def post(self, text, message_id=None, parent_id=None, **kw): require(has_artifact_access('post', self)) + if self.artifact_id is not None: + self.artifact.subscribe() if message_id is None: message_id = h.gen_message_id() parent = parent_id and self.post_class().query.get(_id=parent_id) slug, full_slug = self.post_class().make_slugs(parent)