]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add stub email canonicalizer
authorEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 17:21:10 +0000 (13:21 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 17:21:10 +0000 (13:21 -0400)
Added a stub function to stand in for eventual email canonicalizer.

darcs-hash:20080517172110-84dde-d2c83cb5e88693100c444b0ed088eed327f8a77d.gz

lib/common.php

index 5eed1bb81b3025331b5d738b4f3339f6c29e4609..eeffb90c1c0f30b3545ab5e82729ffadbcb6c12c 100644 (file)
@@ -236,6 +236,13 @@ function common_canonical_nickname($nickname) {
        return strtolower($nickname);
 }
 
+# get canonical version of email for comparison
+function common_canonical_email($email) {
+       # XXX: canonicalize UTF-8
+       # XXX: lcase the domain part
+       return $email;
+}
+
 function common_render_content($text) {
        # XXX: @ messages
        # XXX: # tags