-#!/usr/bin/env php
- <?php
- /*
- * StatusNet - a distributed open-source microblogging tool
- * Copyright (C) 2010, StatusNet, 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
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
+<?php
+/*
+ * StatusNet - a distributed open-source microblogging tool
+ * Copyright (C) 2010, StatusNet, 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
define('INSTALLDIR', realpath(dirname(__FILE__) . '/../..'));
StatusNet::init($server);
// Different queue manager, maybe!
$qm = QueueManager::get();
- $qm->enqueue(null, 'sitesum');
+ $qm->enqueue(1, 'sitesum');
}
}
} else {
$user = getUser();
$qm->enqueue($user->id, 'usersum');
} catch (NoUserArgumentException $nuae) {
- $qm->enqueue(null, 'sitesum');
+ $qm->enqueue(1, 'sitesum');
}
}
*/
function transport()
{
- return 'sitesum';
+ return 'usersum';
}
/**
$new_top = $notice->_items[0]->id;
}
- $out = new XMLStringer();
+ $out = new XMLStringer(true);
$out->elementStart('div', array('width' => '100%',
'style' => 'background-color: #ffffff; border: 4px solid #4c609a; padding: 10px;'));
// FIXME: do something for people who don't like HTML email
+ $subject = sprintf(_m('Your latest updates from %s'), common_config('site', 'name'));
+
// TRANS: Subject for e-mail.
- mail_to_user($user, _m('Updates from your network'), $body,
+
+ mail_to_user($user,
+ $subject,
+ $body,
array('Content-Type' => 'text/html; charset=UTF-8'));
if (empty($ess)) {