From c21ed78fa7a8a0005b0f11e9d4fc5b218f7aaf1f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 29 Jul 2008 22:50:52 -0400 Subject: save the source darcs-hash:20080730025052-84dde-9669e6a7df50bf5762bd3e175ed1471bff9d446c.gz --- classes/Notice.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'classes') 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) { -- cgit v1.2.3-54-g00ecf