FEATURE: add support for generic external avatar services

This changes it so we only ship an avatar template down to the client
it has no magic, all it knows is how to plug in size
This commit is contained in:
Sam
2015-09-11 18:14:34 +10:00
committed by Régis Hanol
parent 22688a31ee
commit 6437cd0341
19 changed files with 35 additions and 118 deletions

View File

@ -1,6 +1,5 @@
import { url } from 'discourse/lib/computed';
import RestModel from 'discourse/models/rest';
import avatarTemplate from 'discourse/lib/avatar-template';
import UserStream from 'discourse/models/user-stream';
import UserPostsStream from 'discourse/models/user-posts-stream';
import Singleton from 'discourse/mixins/singleton';
@ -257,11 +256,6 @@ const User = RestModel.extend({
});
},
@computed("username", "uploaded_avatar_id", "letter_avatar_color")
avatarTemplate(username, uploadedAvatarId, letterAvatarColor) {
return avatarTemplate(username, uploadedAvatarId, letterAvatarColor);
},
/*
Change avatar selection
*/