]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3369: Bookmarks now have rel=nofollow
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 20 Apr 2011 19:29:33 +0000 (19:29 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 20 Apr 2011 19:29:33 +0000 (19:29 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9007 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/bookmarks/views/default/object/bookmarks.php

index 97c68914e1d9c0f7fdf850be3dadbaadb72646fb..ab00e23c6b6fb511c3d2b03e21b7e5aa5ff3dfd0 100644 (file)
@@ -17,7 +17,7 @@ $owner_icon = elgg_view_entity_icon($owner, 'tiny');
 $container = $bookmark->getContainerEntity();
 $categories = elgg_view('output/categories', $vars);
 
-$link = filter_tags(elgg_view('output/url', array('href' => $bookmark->address)));
+$link = filter_tags(elgg_view('output/url', array('href' => $bookmark->address, 'rel' => 'nofollow')));
 $description = elgg_view('output/longtext', array('value' => $bookmark->description, 'class' => 'pbl'));
 
 $owner_link = elgg_view('output/url', array(
@@ -105,7 +105,8 @@ HTML;
 
        $link = filter_tags(elgg_view('output/url', array(
                'href' => $bookmark->address,
-               'text' => $display_text
+               'text' => $display_text,
+               'rel' => 'nofollow',
        )));
 
        $content = elgg_view_icon('push-pin-alt') . "$link{$excerpt}";