Index: openacs-4/packages/news/www/item-create-3.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/news/www/item-create-3.tcl,v diff -u -r1.9 -r1.10 --- openacs-4/packages/news/www/item-create-3.tcl 11 Mar 2005 22:29:05 -0000 1.9 +++ openacs-4/packages/news/www/item-create-3.tcl 8 Aug 2006 21:27:04 -0000 1.10 @@ -76,12 +76,11 @@ } else { set mime_type "text/plain" } - - # do insert: unfortunately the publish_body cannot be supplied through the PL/SQL function # we therefore have to do this in a second step set news_id [db_exec_plsql create_news_item {}] + # # RAL: For postgres, we need NOT store the data in a blob. The # news item body is stored in the prior news__new call. @@ -122,9 +121,20 @@ ad_returnredirect "" } +# news item is live + +# send out rss + if {$live_revision_p \ && [rss_support::subscription_exists \ -summary_context_id $package_id \ -impl_name news]} { news_update_rss -summary_context_id $package_id } + +# send out notifications +if { $live_revision_p } { + news_do_notification $package_id $news_id +} + +ad_returnredirect ""