summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-08-27 20:09:07 -0700
committerEvan Prodromou <evan@status.net>2009-08-27 20:09:07 -0700
commit34ce75c71d37754fa941233c805c042a47910184 (patch)
tree7f83c9aec038916b2ce13ae3458293f33b6a02bb /classes/Notice.php
parent0056b635c661c4aaf6bce08795af925388e35f5c (diff)
remove duplicate save of Notice and streamline attachment detection
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index e59712864..28d5b8ddf 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -58,7 +58,7 @@ class Notice extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
- /* Notice types */
+ /* Notice types */
const LOCAL_PUBLIC = 1;
const REMOTE_OMB = 0;
const LOCAL_NONPUBLIC = -1;
@@ -248,17 +248,6 @@ class Notice extends Memcached_DataObject
$notice->saveUrls();
- // FIXME: why do we have to re-render the content?
- // Remove this if it's not necessary.
-
- $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');
Event::handle('EndNoticeSave', array($notice));