From a3c08faddd8bce8887bbcf263cec8bdc2a6c0f11 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 17 Jan 2011 17:32:44 -0500 Subject: [PATCH] Erroneous code ensuring Webfinger accounts Ostatus_profile::ensureProfileURI() was accidentally falling through to the default switch case, and was also calling common_log() incorrectly. --- plugins/OStatus/classes/Ostatus_profile.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } } -- 2.39.5