Upgrading Spotify's playlist URI format; Settings user objects and using formatUser + formatImages
This commit is contained in:
@ -8,14 +8,16 @@ const LastfmMiddleware = (function(){
|
||||
switch(action.type){
|
||||
|
||||
case 'LASTFM_ME_LOADED':
|
||||
var user = Object.assign(
|
||||
{},
|
||||
action.me,
|
||||
var me = helpers.formatUser(action.me);
|
||||
Object.assign(
|
||||
me,
|
||||
{
|
||||
uri: "lastfm:user:"+action.me.name
|
||||
uri: "lastfm:user:"+me.name
|
||||
}
|
||||
);
|
||||
store.dispatch(coreActions.userLoaded(user));
|
||||
store.dispatch(coreActions.userLoaded(me));
|
||||
action.me = me;
|
||||
next(action);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user