Mercurial > pumpbridge
diff src/sync.coffee @ 8:6fd0a307850f
check empty strings and users
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Wed, 11 Jun 2014 21:58:41 +0200 |
parents | 2123f355ab68 |
children | a52b5b244e51 |
line wrap: on
line diff
--- a/src/sync.coffee Wed Jun 11 02:32:53 2014 +0200 +++ b/src/sync.coffee Wed Jun 11 21:58:41 2014 +0200 @@ -76,7 +76,7 @@ #text='<img src='$PROFILE_PIC_LINK_80x80'></img> <a href='$PROFILE_LINK'>'$PROFILE_NAME'</a> <a href='$POST_LINK'>wrotes</a> at '$POST_TIME':<br><br>'$CONTENT'' if network is 'facebook' - if (user.profilePicLink?) + if user? and user.profilePicLink? profilePicLink = user.profilePicLink.replace("50x50", "80x80") else profilePicLink = 'http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/F_icon.svg/80px-F_icon.svg.png'