pull out follow, unfollow and as:actor for handling

This commit is contained in:
Mike Macgirvin 2010-10-21 21:48:22 -07:00
parent 16b9c58412
commit d850badf2b
3 changed files with 59 additions and 7 deletions

View file

@ -48,6 +48,7 @@ function get_salmon_key($uri,$keyhash) {
$l = explode("\n",$h);
if(count($l)) {
foreach($l as $line) {
// TODO alter the following regex to support multiple relations (space separated)
if((stristr($line,'link:')) && preg_match('/<([^>].*)>.*rel\=[\'\"]lrdd[\'\"]/',$line,$matches)) {
$link = $matches[1];
if($debugging)