aboutsummaryrefslogtreecommitdiff
path: root/actions/upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-02 22:39:00 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-02 22:39:00 +0000
commitbf652f34eb1546f1bff37b4caf80a161e88a416e (patch)
treedb2976cb3d86ab49ae1755e23a22f43eecee45b1 /actions/upload.php
parentd7c368bbce0484ecedbf6f2d4ae756d1bd32896c (diff)
downloadelgg-bf652f34eb1546f1bff37b4caf80a161e88a416e.tar.gz
elgg-bf652f34eb1546f1bff37b4caf80a161e88a416e.tar.bz2
now sending the new album notification after the first set of photos are uploaded
Diffstat (limited to 'actions/upload.php')
-rw-r--r--actions/upload.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/actions/upload.php b/actions/upload.php
index 6911978b0..d5fb7d802 100644
--- a/actions/upload.php
+++ b/actions/upload.php
@@ -187,11 +187,16 @@
// update user/group size for checking quota
$image_repo_size += $sent_file['size'];
- // successful upload so check if this is a new album and throw river event if so
+ // successful upload so check if this is a new album and throw river event/notification if so
if ($album->new_album == TP_NEW_ALBUM) {
+ $album->new_album = TP_OLD_ALBUM;
+
+ // we throw the notification manually here so users are not told about the new album until there
+ // is at least a few photos in it
+ object_notifications('create', 'object', $album);
+
if (function_exists('add_to_river'))
add_to_river('river/object/album/create', 'create', $album->owner_guid, $album->guid);
- $album->new_album = TP_OLD_ALBUM;
}
if ($img_river_view == "all") {