Permalink
Browse files

always link to AMO user profiles now that GP user accounts are migrat…

…ed to AMO (bug 858310)
  • Loading branch information...
1 parent 18277e5 commit 98d26a1800c30b3f0fb2aab8d1c0f1efebf4426a @cvan cvan committed Apr 10, 2013
Showing with 5 additions and 10 deletions.
  1. +5 −9 apps/addons/views.py
  2. +0 −1 lib/settings_base.py
View
@@ -192,16 +192,12 @@ def persona_detail(request, addon, template=None):
'category_personas': category_personas,
}
- author = None
- if persona.is_new():
- try:
- author = addon.authors.all()[0]
- except IndexError:
- pass
- else:
- author = author.get_url_path(src='addon-detail')
+ try:
+ author = addon.authors.all()[0]
+ except IndexError:
+ author = None
else:
- author = settings.PERSONAS_USER_ROOT % persona.author
+ author = author.get_url_path(src='addon-detail')
data['author_gallery'] = author
if not request.MOBILE:
View
@@ -970,7 +970,6 @@ def JINJA_CONFIG():
'%(tens)d/%(units)d/%(id)d/%(file)s')
PERSONAS_IMAGE_URL_SSL = ('https://getpersonas.cdn.mozilla.net/static/'
'%(tens)d/%(units)d/%(id)d/%(file)s')
-PERSONAS_USER_ROOT = 'http://www.getpersonas.com/gallery/designer/%s'
PERSONAS_UPDATE_URL = 'https://www.getpersonas.com/update_check/%d'
VAMO_URL = 'https://versioncheck.addons.mozilla.org'
NEW_PERSONAS_UPDATE_URL = VAMO_URL + '/%(locale)s/themes/update-check/%(id)d'

0 comments on commit 98d26a1

Please sign in to comment.