From: Evan Prodromou Date: Mon, 17 Jan 2011 22:32:44 +0000 (-0500) Subject: Erroneous code ensuring Webfinger accounts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3c08faddd8bce8887bbcf263cec8bdc2a6c0f11;p=quix0rs-gnu-social.git Erroneous code ensuring Webfinger accounts Ostatus_profile::ensureProfileURI() was accidentally falling through to the default switch case, and was also calling common_log() incorrectly. --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 06e42187d4..303e177a57 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -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; } }