diff options
author | Zach Copley <zcopley@mekong.(none)> | 2009-06-17 14:36:33 -0700 |
---|---|---|
committer | Zach Copley <zcopley@mekong.(none)> | 2009-06-17 14:36:33 -0700 |
commit | cd1361fe960eb3afbbdb34b14061b8475dea60c8 (patch) | |
tree | c043f10b3e73865985f3ce2f9252925e004a46f0 /classes/Notice.php | |
parent | 8992e8fa7a3c694cc9d424b3e50cf4d87519fa28 (diff) | |
parent | b58dc5e96117bdb4de899d37c6eb94ebf1c3dfe6 (diff) |
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 6c5558d88..18f3f654e 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -223,6 +223,12 @@ class Notice extends Memcached_DataObject $notice->addToInboxes(); $notice->saveGroups(); $notice->saveUrls(); + $orig2 = clone($notice); + $notice->rendered = common_render_content($final, $notice); + if (!$notice->update($orig2)) { + common_log_db_error($notice, 'UPDATE', __FILE__); + return _('Problem saving notice.'); + } $notice->query('COMMIT'); @@ -242,8 +248,6 @@ class Notice extends Memcached_DataObject * follow redirects and save all available file information * (mimetype, date, size, oembed, etc.) * - * @param class $notice Notice to pull URLs from - * * @return void */ function saveUrls() { |