From 94e82c781a9bc5a171193523cac50ea83e69dcfd Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 30 Oct 2010 14:49:14 +0000 Subject: handling new album in ajax upload code now --- actions/ajax_upload_complete.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 actions/ajax_upload_complete.php (limited to 'actions') diff --git a/actions/ajax_upload_complete.php b/actions/ajax_upload_complete.php new file mode 100644 index 000000000..4fc96061e --- /dev/null +++ b/actions/ajax_upload_complete.php @@ -0,0 +1,24 @@ +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); + + add_to_river('river/object/album/create', 'create', $album->owner_guid, $album->guid); +} + +exit; \ No newline at end of file -- cgit v1.2.3