forked from GNUsocial/gnu-social
Merge branch '0.8.x' of gitorious.org:statusnet/mainline into 0.8.x
This commit is contained in:
commit
7ea73ccad6
@ -27,6 +27,7 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
|
||||
}
|
||||
|
||||
define('STATUSNET', true);
|
||||
define('LACONICA', true); // compatibility
|
||||
|
||||
// Set various flags so we don't time out on long-running processes
|
||||
|
||||
|
@ -24,17 +24,17 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
|
||||
|
||||
common_log(LOG_INFO, 'Fixing up conversations.');
|
||||
|
||||
$nid = new Notice();
|
||||
$nid->query('select id, reply_to from notice where conversation is null');
|
||||
$notice = new Notice();
|
||||
$notice->query('select id, reply_to from notice where conversation is null');
|
||||
|
||||
while ($nid->fetch()) {
|
||||
while ($notice->fetch()) {
|
||||
|
||||
$cid = null;
|
||||
|
||||
$notice = new Notice();
|
||||
$orig = clone($notice);
|
||||
|
||||
if (empty($nid->reply_to)) {
|
||||
$cid = $nid->id;
|
||||
if (empty($notice->reply_to)) {
|
||||
$notice->conversation = $notice->id;
|
||||
} else {
|
||||
$reply = Notice::staticGet('id', $notice->reply_to);
|
||||
|
||||
@ -61,9 +61,7 @@ while ($nid->fetch()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$notice = null;
|
||||
$orig = null;
|
||||
unset($notice);
|
||||
unset($orig);
|
||||
|
||||
print ".\n";
|
||||
|
Loading…
Reference in New Issue
Block a user