aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-06 12:11:47 +0200
committerSem <sembrestels@riseup.net>2012-08-06 12:11:47 +0200
commitab2e30b5784bbe1e3cb9349e7682171cb6688f16 (patch)
tree8b452caf0f9e802c1d5c696af9089a1d5d287ce1 /mod
parent0a0203a418a082a38c5c700ea11377153fa37555 (diff)
downloadelgg-ab2e30b5784bbe1e3cb9349e7682171cb6688f16.tar.gz
elgg-ab2e30b5784bbe1e3cb9349e7682171cb6688f16.tar.bz2
Fixes #4792. Now blog author is who appears in the river.
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/actions/blog/save.php4
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
+}