You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/05/29 22:40:25 UTC

[03/45] allura git commit: [#7082] ticket:769 Ensure that post will go to activity stream when being approved

[#7082] ticket:769 Ensure that post will go to activity stream when being approved


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

Branch: refs/heads/hs/7878
Commit: 0526660f791d559172f28aed8f94341fe68d0829
Parents: d9ce2a4
Author: Igor Bondarenko <je...@gmail.com>
Authored: Fri May 15 14:02:40 2015 +0000
Committer: Heith Seewald <hs...@slashdotmedia.com>
Committed: Fri May 29 14:52:43 2015 -0400

----------------------------------------------------------------------
 Allura/allura/controllers/discuss.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/0526660f/Allura/allura/controllers/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/discuss.py b/Allura/allura/controllers/discuss.py
index 2d9807e..568ca5a 100644
--- a/Allura/allura/controllers/discuss.py
+++ b/Allura/allura/controllers/discuss.py
@@ -359,7 +359,7 @@ class PostController(BaseController):
             self.post.spam()
         elif kw.pop('approve', None):
             if self.post.status != 'ok':
-                self.post.status = 'ok'
+                self.post.approve(notify=False)
                 g.spam_checker.submit_ham(
                     self.post.text, artifact=self.post, user=c.user)
                 self.post.thread.post_to_feed(self.post)