... | ... |
@@ -150,7 +150,7 @@ class WsRosterController < WebsocketRails::BaseController |
150 | 150 |
vcard = Jabber::Vcard::Helper.get(me, contact_jid) |
151 | 151 |
|
152 | 152 |
{ name: pull_name_from_vcard(vcard) || contact_jid, |
153 |
- avatar: vcard["PHOTO/TYPE"] && ('data:' + vcard["PHOTO/TYPE"] + ';base64,' + vcard.photo_binval) || '' |
|
153 |
+ avatar: vcard["PHOTO/TYPE"] && ('data:' + vcard["PHOTO/TYPE"] + ';base64,' + vcard["PHOTO/BINVAL"]) || '' |
|
154 | 154 |
} |
155 | 155 |
end |
156 | 156 |
|