diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-29 22:50:52 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-29 22:50:52 -0400 |
commit | c21ed78fa7a8a0005b0f11e9d4fc5b218f7aaf1f (patch) | |
tree | c7226e5537c450699161c8c534e693d6e7092e52 | |
parent | d79dc8344b529281dfb8a8383c529720a429472b (diff) |
save the source
darcs-hash:20080730025052-84dde-9669e6a7df50bf5762bd3e175ed1471bff9d446c.gz
-rw-r--r-- | classes/Notice.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index ef8f7046e..6655befb1 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -82,11 +82,12 @@ 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(); if (!$id) { |