]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
save the source
authorEvan Prodromou <evan@prodromou.name>
Wed, 30 Jul 2008 02:50:52 +0000 (22:50 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 30 Jul 2008 02:50:52 +0000 (22:50 -0400)
darcs-hash:20080730025052-84dde-9669e6a7df50bf5762bd3e175ed1471bff9d446c.gz

classes/Notice.php

index ef8f7046e61d17bef693b33745241dc2ce2d4041..6655befb17bfef6b32b78a9093a6d1e5fbd3dabf 100644 (file)
@@ -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) {