]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/fixup_hashtags.php
Merge branch 'master' of root@laconi.ca:/var/www/laconi.ca/software/laconica
[quix0rs-gnu-social.git] / scripts / fixup_hashtags.php
index 88f385798d0496c930e9f6e1a4346153ad532590..6f65c78a1fe8f8971c3ed5ad0d90b04cd5f2ed63 100755 (executable)
@@ -37,10 +37,10 @@ $cnt = $notice->find();
 while ($notice->fetch()) {
     common_log(LOG_INFO, 'Getting tags for notice #' . $notice->id);
     $notice->saveTags();
-       $original = clone($notice);
-       $notice->rendered = common_render_content($notice->content, $notice);
-       $result = $notice->update($original);
-       if (!$result) {
-               common_log_db_error($notice, 'UPDATE', __FILE__);
-       }
+    $original = clone($notice);
+    $notice->rendered = common_render_content($notice->content, $notice);
+    $result = $notice->update($original);
+    if (!$result) {
+        common_log_db_error($notice, 'UPDATE', __FILE__);
+    }
 }