Erroneous code ensuring Webfinger accounts

Ostatus_profile::ensureProfileURI() was accidentally falling through to
the default switch case, and was also calling common_log() incorrectly.
This commit is contained in:
Evan Prodromou 2011-01-17 17:32:44 -05:00
parent 7ca57e32aa
commit a3c08faddd
1 changed files with 3 additions and 1 deletions

View File

@ -1779,8 +1779,10 @@ class Ostatus_profile extends Memcached_DataObject
case 'mailto':
$rest = $match[2];
$oprofile = Ostatus_profile::ensureWebfinger($rest);
break;
default:
common_log("Unrecognized URI protocol for profile: $protocol ($uri)");
common_log(LOG_WARNING,
"Unrecognized URI protocol for profile: $protocol ($uri)");
break;
}
}