From bf652f34eb1546f1bff37b4caf80a161e88a416e Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 2 Aug 2009 22:39:00 +0000 Subject: now sending the new album notification after the first set of photos are uploaded --- start.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'start.php') diff --git a/start.php b/start.php index c44c3cfc1..5a225e053 100644 --- a/start.php +++ b/start.php @@ -354,10 +354,14 @@ $method = $params['method']; if (($entity instanceof ElggEntity) && ($entity->getSubtype() == 'album')) { + // block notification message when the album doesn't have any photos + if ($entity->new_album == TP_NEW_ALBUM) + return false; + $descr = $entity->description; $title = $entity->title; $owner = $entity->getOwnerEntity(); - return sprintf(elgg_echo('album:river:created'), $owner->name) . ' ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL(); + return sprintf(elgg_echo('album:river:created'), $owner->name) . ': ' . $title . "\n\n" . $descr . "\n\n" . $entity->getURL(); } return null; } -- cgit v1.2.3