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 21:33:05 UTC

[2/3] 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/af239a61
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/af239a61
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/af239a61

Branch: refs/heads/master
Commit: af239a6169eb1398f5ecf9d3f2084f7b50c15bde
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 19:32:22 2015 +0000

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


http://git-wip-us.apache.org/repos/asf/allura/blob/af239a61/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)