]> git.mxchange.org Git - friendica.git/commitdiff
aid salmon discovery for feed scrapers that look for the old-style rel type.
authorMike Macgirvin <mike@macgirvin.com>
Fri, 22 Oct 2010 01:07:22 +0000 (18:07 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Fri, 22 Oct 2010 01:07:22 +0000 (18:07 -0700)
include/items.php

index eca050d4fed0c428467a0611126d9146ebf65308..b4c2da0ca8cf67af5b5ef08cba369c83e9ef3486 100644 (file)
@@ -139,7 +139,9 @@ function get_feed_for(&$a, $dfrn_id, $owner_id, $last_update, $direction = 0) {
        }
 
        $salmon = '<link rel="salmon" href="' . xmlify($a->get_baseurl() . '/salmon/' . $owner_nick) . '" />' . "\n" ; 
-//     $salmon = ''; // remove this line when salmon handler is finished
+       $salmon .= '<link rel="http://salmon-protocol.org/ns/salmon-replies" href="' . xmlify($a->get_baseurl() . '/salmon/' . $owner_nick) . '" />' . "\n" ; 
+       $salmon .= '<link rel="http://salmon-protocol.org/ns/salmon-mention" href="' . xmlify($a->get_baseurl() . '/salmon/' . $owner_nick) . '" />' . "\n" ; 
+
 
        $atom .= replace_macros($feed_template, array(
                '$feed_id'      => xmlify($a->get_baseurl() . '/profile/' . $owner_nick),