allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [01/11] allura git commit: [#5461] posting (or creating) a ForumThread now subscribes you to it, same as posting already did for other things
Date Thu, 03 Jan 2019 14:57:06 GMT
Repository: allura
Updated Branches:
  refs/heads/master c680776c1 -> d69e4176a


[#5461] posting (or creating) a ForumThread now subscribes you to it, same as posting already
did for other things


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/a94c28ba
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a94c28ba
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a94c28ba

Branch: refs/heads/master
Commit: a94c28ba95b6d5faa54de9f45e6282da2f8c2ed5
Parents: c680776
Author: Dave Brondsema <dave@brondsema.net>
Authored: Tue Dec 18 11:40:33 2018 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Tue Dec 18 11:41:24 2018 -0500

----------------------------------------------------------------------
 Allura/allura/model/discuss.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/a94c28ba/Allura/allura/model/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/discuss.py b/Allura/allura/model/discuss.py
index c7fcc27..240f2eb 100644
--- a/Allura/allura/model/discuss.py
+++ b/Allura/allura/model/discuss.py
@@ -306,8 +306,7 @@ class Thread(Artifact, ActivityObject):
              is_meta=False, **kw):
         if not ignore_security:
             require_access(self, 'post')
-        if self.ref_id and self.artifact:
-            self.artifact.subscribe()
+        self.primary().subscribe()
         if message_id is None:
             message_id = h.gen_message_id()
         parent = parent_id and self.post_class().query.get(_id=parent_id)


Mime
View raw message