]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/fixup_hashtags.php
common_render_content doesn't require a Profile now
[quix0rs-gnu-social.git] / scripts / fixup_hashtags.php
index ac6522f3d91d157775954bb030207057125a0b21..b5cdb764982a223f89b8db5ccd9e4f48b53f338e 100755 (executable)
@@ -39,7 +39,9 @@ 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);
+    $notice->rendered = common_render_content($notice->content,
+                                              $notice->getProfile(),
+                                              $notice->hasParent() ? $notice->getParent() : null);
     $result = $notice->update($original);
     if (!$result) {
         common_log_db_error($notice, 'UPDATE', __FILE__);