From: Mikael Nordfeldth Date: Thu, 4 Feb 2016 11:16:36 +0000 (+0100) Subject: Unknown functionality of a script X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41e36e1f2880308fa912133902ac178ca52d5c9d;p=quix0rs-gnu-social.git Unknown functionality of a script Something added 6-8 years ago which we don't use anymore... --- 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); -}