Embiggening twitter profile photos in profile dialog.

This commit is contained in:
Samuel Clay 2012-05-09 13:51:48 -07:00
parent 783133fa02
commit e44ccc355e

View file

@ -15,6 +15,8 @@ NEWSBLUR.Models.User = Backbone.Model.extend({
var url = this.get('photo_url');
if (options.size && _.string.include(url, 'graph.facebook.com')) {
url += '?type=' + options.size;
} else if (options.size == 'large' && _.string.include(url, 'twimg')) {
url = url.replace(/_normal.(\w+)/, '.$1');
}
return url;
}