]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Blogs only show up in the river if in published state.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 16:21:12 +0000 (16:21 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 16:21:12 +0000 (16:21 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6175 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/actions/blog/save.php

index db9ea77e8a1660470ea34f8bb6256ab8014ac8fa..46af1bafba7a45a57a5b8ef46cd86afbee6e45f4 100644 (file)
@@ -145,7 +145,7 @@ if (!$error) {
 
                system_message(elgg_echo('blog:message:saved'));
                // @todo do we want to alert on updates?
-               if ($new_post) {
+               if ($new_post && $blog->status == 'published') {
                        add_to_river('river/object/blog/create', 'create', get_loggedin_userid(), $blog->getGUID());
                }
                forward($success_forward_url);