From: Evan Prodromou Date: Wed, 30 Jul 2008 02:50:52 +0000 (-0400) Subject: save the source X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c21ed78fa7a8a0005b0f11e9d4fc5b218f7aaf1f;p=quix0rs-gnu-social.git save the source darcs-hash:20080730025052-84dde-9669e6a7df50bf5762bd3e175ed1471bff9d446c.gz --- diff --git a/classes/Notice.php b/classes/Notice.php index ef8f7046e6..6655befb17 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) {