]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/foaf.php
Don't publish mbox_sha1sum in FOAF by default.
[quix0rs-gnu-social.git] / actions / foaf.php
index 260388ba447b72819ea0f908e4da35e9ade80391..bf9cf1b957bdb5b8abeb6940437396b373547e19 100644 (file)
@@ -90,7 +90,7 @@ class FoafAction extends ManagedAction
 
         // Would be nice to tell if they were a Person or not (e.g. a #person usertag?)
         $this->elementStart('Agent', array('rdf:about' => $this->user->getUri()));
-        if ($this->user->email) {
+        if (common_config('foaf', 'mbox_sha1sum') && $this->user->email) {
             $this->element('mbox_sha1sum', null, sha1('mailto:' . $this->user->email));
         }
         if ($this->profile->fullname) {