]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/fixup_hashtags.php
- Rewrote SyncTwitterFriends as a daemon
[quix0rs-gnu-social.git] / scripts / fixup_hashtags.php
index 88f385798d0496c930e9f6e1a4346153ad532590..bd38e3105575a2720c3f45f080cf1197d5edcf72 100755 (executable)
@@ -2,7 +2,7 @@
 <?php
 /*
  * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, Controlez-Vous, Inc.
+ * Copyright (C) 2008, 2009, Control Yourself, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -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__);
+    }
 }