save the source

darcs-hash:20080730025052-84dde-9669e6a7df50bf5762bd3e175ed1471bff9d446c.gz
This commit is contained in:
Evan Prodromou 2008-07-29 22:50:52 -04:00
parent d79dc8344b
commit c21ed78fa7

View File

@ -82,10 +82,11 @@ class Notice extends DB_DataObject
$notice->profile_id = $profile_id;
$notice->is_local = $is_local;
$notice->created = DB_DataObject_Cast::dateTime();
# Default theme uses 'content' for something else
$notice->content = $content;
$notice->rendered = common_render_content($notice->content, $notice);
if ($source) {
$notice->source = $source;
}
$id = $notice->insert();