|
@@ 715-718 (lines=4) @@
|
| 712 |
|
$content = get_entity($object->entity_guid); |
| 713 |
|
$get_error_info='if object subtype likes 0'; |
| 714 |
|
// auto save -drafts or -published blogs, we don't send out notifications |
| 715 |
|
if (strcmp($object_subtype,'blog_auto_save') == 0 && (strcmp($entity->status,'draft') == 0 || strcmp($entity->status, 'published') == 0)){ |
| 716 |
|
$get_error_info='draft/autosave'; |
| 717 |
|
return; |
| 718 |
|
} |
| 719 |
|
|
| 720 |
|
|
| 721 |
|
// if we are publishing, or revising blogs then send out notification |
|
@@ 1300-1304 (lines=5) @@
|
| 1297 |
|
default: |
| 1298 |
|
|
| 1299 |
|
// cyu - there is an issue with regards to auto-saving drafts |
| 1300 |
|
if (strcmp($object->getSubtype(),'blog') == 0) { |
| 1301 |
|
$get_error_info='draft blog'; |
| 1302 |
|
|
| 1303 |
|
if (strcmp($object->status,'draft') == 0 || strcmp($object->status,'unsaved_draft') == 0) return; |
| 1304 |
|
} |
| 1305 |
|
|
| 1306 |
|
// the user creating the content is automatically subscribed to it (with exception that is not a widget, forum, etc..) |
| 1307 |
|
$cp_whitelist = array('blog', 'bookmarks', 'poll', 'groupforumtopic', 'image', 'idea', 'page', 'page_top', 'thewire', 'task_top', 'question', 'answer', 'cp_wire_image','event_calendar'); |