mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Embiggening twitter profile photos in profile dialog.
This commit is contained in:
parent
783133fa02
commit
e44ccc355e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue