diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-17 15:05:24 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-17 15:05:24 -0700 |
commit | 420e8994f8f62c22073e70e081daadfa2d8d7c06 (patch) | |
tree | 67aaba76513bc1f60382beab2223c32c80f942a9 /classes/Notice.php | |
parent | 07f5797f2fd1a425027190d424e359a1b4c4c8be (diff) | |
parent | cd1361fe960eb3afbbdb34b14061b8475dea60c8 (diff) |
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into taggedprofile
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 50242300d..e621805df 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() { |