Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
fixed error when email does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
rodsimpson committed Mar 27, 2012
1 parent 642cb0c commit d3af365
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/MsgController.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -130,16 +130,17 @@ app.controllers.MsgController = new Ext.Controller({
app.views.viewport.setActiveItem(app.views.newMsgPanel, options.animation); app.views.viewport.setActiveItem(app.views.newMsgPanel, options.animation);
}, },
send: function(options) { send: function(options) {

var email = '';
if (client.loggedInUser.email) { email = hex_md5(client.loggedInUser.email); }
var data= { var data= {
actor: { actor: {
displayName: appUser, displayName: appUser,
image : { image : {
url: "http://www.gravatar.com/avatar/" + hex_md5(client.loggedInUser.email), url: "http://www.gravatar.com/avatar/" + email,
height: 80, height: 80,
width: 80 width: 80
}, },
email: client.loggedInUser.email email: email
}, },
verb: "post", verb: "post",
content: app.views.newMsgPanel.getText() content: app.views.newMsgPanel.getText()
Expand Down

0 comments on commit d3af365

Please sign in to comment.