]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Erroneous code ensuring Webfinger accounts
authorEvan Prodromou <evan@status.net>
Mon, 17 Jan 2011 22:32:44 +0000 (17:32 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 17 Jan 2011 22:32:44 +0000 (17:32 -0500)
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

index 06e42187d4c8176954f74587eb55a19469f9cc0a..303e177a5702ae02d7e195bc1f7ed0a877c67a5f 100644 (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;
                 }
             }