forked from GNUsocial/gnu-social
Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing
This commit is contained in:
commit
79ec565104
@ -109,7 +109,7 @@ class PublictagcloudAction extends Action
|
|||||||
$cutoff = sprintf("notice_tag.created > '%s'",
|
$cutoff = sprintf("notice_tag.created > '%s'",
|
||||||
common_sql_date(time() - common_config('tag', 'cutoff')));
|
common_sql_date(time() - common_config('tag', 'cutoff')));
|
||||||
$tags->selectAdd($calc . ' as weight');
|
$tags->selectAdd($calc . ' as weight');
|
||||||
$tags->addWhere($cutoff);
|
$tags->whereAdd($cutoff);
|
||||||
$tags->groupBy('tag');
|
$tags->groupBy('tag');
|
||||||
$tags->orderBy('weight DESC');
|
$tags->orderBy('weight DESC');
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ $encGroup = str_replace($marker, '%', $encGroup);
|
|||||||
$sql = "SELECT * FROM ostatus_profile WHERE uri LIKE '%s' OR uri LIKE '%s'";
|
$sql = "SELECT * FROM ostatus_profile WHERE uri LIKE '%s' OR uri LIKE '%s'";
|
||||||
$oprofile->query(sprintf($sql, $encProfile, $encGroup));
|
$oprofile->query(sprintf($sql, $encProfile, $encGroup));
|
||||||
|
|
||||||
echo "Found $oprofile->N bogus ostatus_profile entries:\n";
|
echo "Found $oprofile->N bogus ostatus_profile entries for local users and groups:\n";
|
||||||
|
|
||||||
while ($oprofile->fetch()) {
|
while ($oprofile->fetch()) {
|
||||||
echo "$oprofile->uri";
|
echo "$oprofile->uri";
|
||||||
@ -58,7 +58,7 @@ while ($oprofile->fetch()) {
|
|||||||
if ($dry) {
|
if ($dry) {
|
||||||
echo " (unchanged)\n";
|
echo " (unchanged)\n";
|
||||||
} else {
|
} else {
|
||||||
echo " deleting...";
|
echo " removing bogus ostatus_profile entry...";
|
||||||
$evil = clone($oprofile);
|
$evil = clone($oprofile);
|
||||||
$evil->delete();
|
$evil->delete();
|
||||||
echo " ok\n";
|
echo " ok\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user