Hieu Nguyen added the comment:

I've attached the patch that allows user edit his/her homepage, I added the 
rel="nofollow" in the user's link so it makes no SEO value to search engine so 
we have less spam/advertisement risk.

----------
nosy: +hieu.nguyen

_______________________________________________________
PSF Meta Tracker <metatrac...@psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue458>
_______________________________________________________
diff -r 3a4232245f3f html/issue.item.html
--- a/html/issue.item.html      Tue Jul 29 16:12:03 2014 +0200
+++ b/html/issue.item.html      Sat Aug 02 20:16:12 2014 +0300
@@ -329,7 +329,7 @@
    <th i18n:translate="">Author:
        <tal:block define="author_name 
python:msg.author.realname.plain(unchecked=1)">
          <a tal:condition="python:msg.author.homepage and 
msg.author.homepage.is_view_ok()"
-            tal:attributes="href msg/author/homepage" 
tal:content="author_name">
+            tal:attributes="href msg/author/homepage" 
tal:content="author_name" rel="nofollow">
          </a><tal:x condition="python: not msg.author.homepage or not 
msg.author.homepage.is_view_ok()"
                     replace="author_name" />
        </tal:block>
diff -r 3a4232245f3f schema.py
--- a/schema.py Tue Jul 29 16:12:03 2014 +0200
+++ b/schema.py Sat Aug 02 20:16:12 2014 +0300
@@ -358,7 +358,8 @@
                 'phone', 'organisation',
                 'alternate_addresses',
                 'queries',
-                'timezone')) # Note: 'roles' excluded - users should not be 
able to edit their own roles.
+                'timezone',
+                'homepage')) # Note: 'roles' excluded - users should not be 
able to edit their own roles.
                              # Also excluded: contrib_form, contrib_form_date, 
iscommitter
 for r in 'User', 'Developer':
     db.security.addPermissionToRole(r, p)
_______________________________________________
Tracker-discuss mailing list
Tracker-discuss@python.org
https://mail.python.org/mailman/listinfo/tracker-discuss

Reply via email to