remove avatar field on server
This commit is contained in:
parent
66286d1b9a
commit
ae94ebd997
@ -125,7 +125,6 @@ Meteor.publish('users', function() {
|
|||||||
// Only return necessary fields
|
// Only return necessary fields
|
||||||
fields: {
|
fields: {
|
||||||
'services.google.email': 1,
|
'services.google.email': 1,
|
||||||
'profile.avatar': 1,
|
|
||||||
'profile.banner': 1,
|
'profile.banner': 1,
|
||||||
'profile.grade': 1,
|
'profile.grade': 1,
|
||||||
'profile.description': 1,
|
'profile.description': 1,
|
||||||
@ -468,7 +467,6 @@ Meteor.methods({
|
|||||||
"grade": change.grade,
|
"grade": change.grade,
|
||||||
"classes": current.classes,
|
"classes": current.classes,
|
||||||
"description": change.description,
|
"description": change.description,
|
||||||
"avatar": change.avatar,
|
|
||||||
"banner": change.banner,
|
"banner": change.banner,
|
||||||
"preferences": change.preferences,
|
"preferences": change.preferences,
|
||||||
"name": current.name
|
"name": current.name
|
||||||
@ -505,7 +503,6 @@ Meteor.methods({
|
|||||||
_id: userId
|
_id: userId
|
||||||
}).profile;
|
}).profile;
|
||||||
current.banner = "/Banners/defaultcover.jpg";
|
current.banner = "/Banners/defaultcover.jpg";
|
||||||
current.avatar = "/Avatars/" + (Math.floor(Math.random() * 10) + 1).toString() + ".png";
|
|
||||||
current.classes = [userId];
|
current.classes = [userId];
|
||||||
current.preferences = {
|
current.preferences = {
|
||||||
"theme": "light",
|
"theme": "light",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user