]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
removing the webfinger hack for Notice::asAtomEntry since salmon can use a profile URL
authorJames Walker <walkah@walkah.net>
Wed, 10 Feb 2010 02:50:51 +0000 (21:50 -0500)
committerJames Walker <walkah@walkah.net>
Wed, 10 Feb 2010 02:50:51 +0000 (21:50 -0500)
plugins/OStatus/OStatusPlugin.php

index f7fed1f0db130938056ac77e3d90da0e0716332d..62ecaf6310cb842cc75d30ed24fc95d478236567 100644 (file)
@@ -220,15 +220,8 @@ class OStatusPlugin extends Plugin
                     continue;
                 }
 
-                $profile = $notice->getProfile();
-                
-                $acct = $profile->nickname .'@'. common_config('site', 'server');
-                
                 $xml = '<?xml version="1.0" encoding="UTF-8" ?>';
                 $xml .= $notice->asAtomEntry();
-                // TODO : need to set author/uri to webfinger acct. more cleanly
-                $xml = preg_replace('/<uri>([^<])*<\/uri>/i', '<uri>acct:'.$acct.'</uri>', $xml);
-
                
                 $salmon = new Salmon();
                 $salmon->post($endpoint_uri, $xml);