Mercurial > pumpbridge
comparison src/sync.coffee @ 31:8238d312e281
var checks
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Tue, 30 Sep 2014 07:30:54 +0200 |
parents | 3e3fa35e3ce2 |
children |
comparison
equal
deleted
inserted
replaced
30:3e3fa35e3ce2 | 31:8238d312e281 |
---|---|
66 #PROFILE_LINK PROFILE_NAME PROFILE_PIC_LINK_80x80=$3 POST_LINK POST_TIME CONTENT | 66 #PROFILE_LINK PROFILE_NAME PROFILE_PIC_LINK_80x80=$3 POST_LINK POST_TIME CONTENT |
67 #text='<img src='$PROFILE_PIC_LINK_80x80'></img> <a href='$PROFILE_LINK'>'$PROFILE_NAME'</a> <a href='$POST_LINK'>writes</a> at '$POST_TIME':<br><br>'$CONTENT'' | 67 #text='<img src='$PROFILE_PIC_LINK_80x80'></img> <a href='$PROFILE_LINK'>'$PROFILE_NAME'</a> <a href='$POST_LINK'>writes</a> at '$POST_TIME':<br><br>'$CONTENT'' |
68 | 68 |
69 if network is 'facebook' | 69 if network is 'facebook' |
70 if user? and user.profilePicLink? | 70 if user? and user.profilePicLink? |
71 profilePicLink = user.profilePicLink.replace("50x50", "80x80") | 71 profilePicLink = user.profilePicLink |
72 #.replace("50x50", "80x80") | |
72 else | 73 else |
73 profilePicLink = 'http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/F_icon.svg/80px-F_icon.svg.png' | 74 profilePicLink = 'http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/F_icon.svg/80px-F_icon.svg.png' |
74 | 75 |
75 if post.type is 'status' | 76 if post.type is 'status' |
76 parsed = "<img src='" + profilePicLink + "'></img> <a href='" + user.profileLink + "'>" + user.displayName + "</a> <a href='https://www.facebook.com/" + post.id + "'> writes</a> via " + network + " at " + post.updated_time + ":<br><br>" + post.message | 77 parsed = "<img src='" + profilePicLink + "'></img> <a href='" + user.profileLink + "'>" + user.displayName + "</a> <a href='https://www.facebook.com/" + post.id + "'> writes</a> via " + network + " at " + post.updated_time + ":<br><br>" + post.message |