X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsalmon.php;h=11e42d94364a36cc4eb6f155d4ccd49815e6dc87;hb=f7597d42ad9ffeed1774e9957237e1366270fc36;hp=5df1e1c9e541b9d332942fb629e65f42cfdeb8b1;hpb=1d91b2d1b3d1e24565cfc39bec5ac25b5a1e340d;p=friendica.git diff --git a/mod/salmon.php b/mod/salmon.php index 5df1e1c9e5..11e42d9436 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -15,7 +15,7 @@ function salmon_return($val) { if($val >= 200 && $val < 300) $err = 'OK'; - logger('mod-salmon returns ' . $val); + logger('mod-salmon returns ' . $val); header($_SERVER["SERVER_PROTOCOL"] . ' ' . $val . ' ' . $err); killme(); @@ -50,7 +50,7 @@ function salmon_post(&$a) { $base = $dom->env; elseif($dom->data) $base = $dom; - + if(! $base) { logger('mod-salmon: unable to locate salmon data in xml '); http_status_exit(400); @@ -92,7 +92,7 @@ function salmon_post(&$a) { // Create a fake feed wrapper so simplepie doesn't choke $tpl = get_markup_template('fake_feed.tpl'); - + $base = substr($data,strpos($data,''; @@ -100,7 +100,7 @@ function salmon_post(&$a) { logger('mod-salmon: Processed feed: ' . $feedxml); // Now parse it like a normal atom feed to scrape out the author URI - + $feed = new SimplePie(); $feed->set_raw_data($feedxml); $feed->enable_order_by_date(false); @@ -192,7 +192,7 @@ function salmon_post(&$a) { ); } } - } + } // is this a follower? Or have we ignored the person? // If so we can not accept this post. @@ -223,7 +223,3 @@ function salmon_post(&$a) { http_status_exit(200); } - - - -