diff options
author | Evan Winslow <evan@elgg.org> | 2012-08-26 01:34:23 -0700 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2012-08-26 01:34:23 -0700 |
commit | 9cef08d0411f6e31b46bd1b80cc2246e9e03f84a (patch) | |
tree | bee10b0ab1c7389b4935af8dac8f5db25a053a9d | |
parent | b9dec14a7a7476b64722c3815e77b3b226c05e72 (diff) | |
parent | ab2e30b5784bbe1e3cb9349e7682171cb6688f16 (diff) | |
download | elgg-9cef08d0411f6e31b46bd1b80cc2246e9e03f84a.tar.gz elgg-9cef08d0411f6e31b46bd1b80cc2246e9e03f84a.tar.bz2 |
Merge pull request #359 from sembrestels/blog-draft-owner
Fixes #4792. Now blog author is who appears in the river.
-rw-r--r-- | mod/blog/actions/blog/save.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/blog/actions/blog/save.php b/mod/blog/actions/blog/save.php index 8923cd0d2..048bc00be 100644 --- a/mod/blog/actions/blog/save.php +++ b/mod/blog/actions/blog/save.php @@ -145,7 +145,7 @@ if (!$error) { // add to river if changing status or published, regardless of new post // because we remove it for drafts. if (($new_post || $old_status == 'draft') && $status == 'published') { - add_to_river('river/object/blog/create', 'create', elgg_get_logged_in_user_guid(), $blog->getGUID()); + add_to_river('river/object/blog/create', 'create', $blog->owner_guid, $blog->getGUID()); if ($guid) { $blog->time_created = time(); @@ -170,4 +170,4 @@ if (!$error) { } else { register_error($error); forward($error_forward_url); -}
\ No newline at end of file +} |