allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [25/50] [abbrv] allura git commit: [#7082] ticket:769 Ensure that post will go to activity stream when being approved
Date Fri, 05 Jun 2015 18:41:40 GMT
[#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/hs/7873
Commit: af239a6169eb1398f5ecf9d3f2084f7b50c15bde
Parents: d9ce2a4
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri May 15 14:02:40 2015 +0000
Committer: Heith Seewald <hseewald@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)


Mime
View raw message