mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-27 07:04:24 +00:00
don't store avatar to local storage if it is 'img/genericPerson.png', #339
This commit is contained in:
parent
e82959efde
commit
57cc22a2fc
@ -389,7 +389,8 @@ function getAvatar(username, img) {
|
||||
function(req, imagedata) {
|
||||
if (imagedata && imagedata.length) {
|
||||
_avatarMap[req.username] = imagedata;
|
||||
_putResourceIntoStorage('avatar:' + username, imagedata);
|
||||
if (imagedata !== 'img/genericPerson.png')
|
||||
_putResourceIntoStorage('avatar:' + username, imagedata);
|
||||
req.img.attr('src', imagedata);
|
||||
}
|
||||
}, {username: username, img: img}
|
||||
|
Loading…
x
Reference in New Issue
Block a user