aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog/actions')
-rw-r--r--mod/blog/actions/blog/save.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php
index eca711f60..7115acaa4 100644
--- a/mod/blog/actions/blog/save.php
+++ b/mod/blog/actions/blog/save.php
@@ -144,6 +144,10 @@ if (!$error) {
}
system_message(elgg_echo('blog:message:saved'));
+ // @todo do we want to alert on updates?
+ if ($new_post) {
+ add_to_river('river/object/blog/create', 'create', get_loggedin_userid(), $blog->getGUID());
+ }
forward($success_forward_url);
} else {
register_error(elgg_echo('blog:error:cannot_save'));
@@ -152,13 +156,4 @@ if (!$error) {
} else {
register_error($error);
forward($error_forward_url);
-}
-
-// forward with success or failure
-if ($error) {
- register_error($error);
- forward($error_forward_url);
-} else {
- system_message(elgg_echo('blog:message:saved'));
- forward($success_forward_url);
} \ No newline at end of file