// we only want notifications sent when post published
register_notification_object('object', 'blog', elgg_echo('blog:newpost'));
- elgg_trigger_event('publish', 'blog', $blog);
+ elgg_trigger_event('publish', 'object', $blog);
// reset the creation time for posts that move from draft to published
if ($guid) {
elgg_register_entity_url_handler('object', 'blog', 'blog_url_handler');
// notifications - need to register for unique event because of draft/published status
- elgg_register_event_handler('publish', 'blog', 'object_notifications');
+ elgg_register_event_handler('publish', 'object', 'object_notifications');
elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'blog_notify_message');
// add blog link to