mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-08-13 17:03:51 -04:00
Fix: User Avatar
This commit is contained in:
parent
e3460cec6e
commit
fc894a4c35
@ -703,7 +703,7 @@
|
||||
{
|
||||
templateRegex: /mailto:([^\/]+).*/,
|
||||
template: function (wm, email) {
|
||||
return '<img src="http://gravatar.com/avatar/' + email.md5() + '.jpg" alt="on Gravtar" class="jqoaImg">';
|
||||
return '<img src="https://gravatar.com/avatar/' + email.md5() + '.jpg" alt="on Gravtar" class="jqoaImg">';
|
||||
}
|
||||
}),
|
||||
new $.fn.oembed.OEmbedProvider("achewood", "photo", ["achewood\\.com\\/index.php\\?date=.+"], "http://www.achewood.com/comic.php?date=$1", {templateRegex: /.*achewood\.com\/index.php\?date=(\w+).*/, embedtag: {tag: 'iframe', width: 480, height: 360 }, nocache: 1}),
|
||||
@ -893,7 +893,7 @@
|
||||
}
|
||||
|
||||
out += '</div><div class="oembedall-fr"><div class="oembedall-user-info"><div class="oembedall-user-gravatar32"><a href="http://stackoverflow.com/users/' + q.owner.user_id + '/' + q.owner.display_name + '">'
|
||||
+ '<img width="32" height="32" alt="" src="http://www.gravatar.com/avatar/' + q.owner.email_hash + '?s=32&d=identicon&r=PG"></a></div><div class="oembedall-user-details">'
|
||||
+ '<img width="32" height="32" alt="" src="https://www.gravatar.com/avatar/' + q.owner.email_hash + '?s=32&d=identicon&r=PG"></a></div><div class="oembedall-user-details">'
|
||||
+ '<a href="http://stackoverflow.com/users/' + q.owner.user_id + '/' + q.owner.display_name + '">' + q.owner.display_name + '</a><br><span title="reputation score" class="oembedall-reputation-score">'
|
||||
+ q.owner.reputation + '</span></div></div></div></div></div>';
|
||||
return out;
|
||||
|
@ -13,9 +13,7 @@ var fetchAvatar = require('../helpers/fetchAvatar');
|
||||
|
||||
module.exports = HumanModel.define({
|
||||
initialize: function (opts) {
|
||||
if (opts.avatarID) {
|
||||
this.setAvatar(opts.avatarID);
|
||||
}
|
||||
this.setAvatar(opts ? opts.avatarID : null);
|
||||
|
||||
this.bind('change:jid', this.load, this);
|
||||
this.bind('change:hasFocus', function () {
|
||||
|
@ -95,7 +95,7 @@ module.exports = HumanModel.define({
|
||||
if (xmppContact) {
|
||||
avatar = xmppContact.avatar;
|
||||
}
|
||||
return avatar || 'https://gravatar.com/avatar';
|
||||
return avatar;
|
||||
},
|
||||
addMessage: function (message, notify) {
|
||||
message.owner = me.jid.bare;
|
||||
|
Loading…
Reference in New Issue
Block a user