]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
force re-render on all notices whether or not they're already rendered
authorEvan Prodromou <evan@prodromou.name>
Tue, 29 Jul 2008 18:31:54 +0000 (14:31 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 29 Jul 2008 18:31:54 +0000 (14:31 -0400)
darcs-hash:20080729183154-84dde-680e676d3f1f953ed0a8259598aaee04c012dc60.gz

fixup_notices_rendered.php

index 546eef37eb6c65bd870b906b7cc90595ae4abb3e..53f9b1b1665a18d59e7c707d37c95404cb645bcb 100755 (executable)
@@ -35,13 +35,11 @@ $notice = new Notice();
 $cnt = $notice->find();
 
 while ($notice->fetch()) {
-       if (!$notice->rendered) {
-               common_log(LOG_INFO, 'Pre-rendering notice #' . $notice->id);
-               $original = clone($notice);
-               $notice->rendered = common_render_content($notice->content, $notice);
-               $result = $notice->update($original);
-               if (!$result) {
-                       common_log_db_error($notice, 'UPDATE', __FILE__);
-               }
+       common_log(LOG_INFO, 'Pre-rendering notice #' . $notice->id);
+       $original = clone($notice);
+       $notice->rendered = common_render_content($notice->content, $notice);
+       $result = $notice->update($original);
+       if (!$result) {
+               common_log_db_error($notice, 'UPDATE', __FILE__);
        }
 }