From 41e36e1f2880308fa912133902ac178ca52d5c9d Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 4 Feb 2016 12:16:36 +0100 Subject: [PATCH] Unknown functionality of a script Something added 6-8 years ago which we don't use anymore... --- scripts/fixup_replies.php | 41 --------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 scripts/fixup_replies.php diff --git a/scripts/fixup_replies.php b/scripts/fixup_replies.php deleted file mode 100755 index 17d746eb51..0000000000 --- a/scripts/fixup_replies.php +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env php -. - */ - -// Abort if called from a web server -if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { - print "This script must be run from the command line\n"; - exit(); -} - -define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); -define('GNUSOCIAL', true); -define('STATUSNET', true); // compatibility - -require_once(INSTALLDIR . '/lib/common.php'); - -common_log(LOG_INFO, 'Starting to do old notices.'); - -$notice = new Notice(); -$cnt = $notice->find(); - -while ($notice->fetch()) { - common_log(LOG_INFO, 'Getting replies for notice #' . $notice->id); - common_save_replies($notice); -}