fixed some mentions stuff

This commit is contained in:
jeena 2013-07-22 02:02:59 +02:00
parent 3aa9a73045
commit 06fd235bec
10 changed files with 222 additions and 199 deletions

View file

@ -250,6 +250,7 @@ function(HostApp, Core, APICalls, URI) {
APICalls.get(url, {callback: function(resp) {
var json = JSON.parse(resp.responseText);
debug(json)
var count = json.posts.length;
if (count > 0) {
@ -273,12 +274,14 @@ function(HostApp, Core, APICalls, URI) {
if(profiles.posts.length < 1) return;
var profile = profiles.posts[0];
bungloo.cache.profiles[profile.entity] = profile;
var basic = profile.content.profile;
if (profile && basic) {
// Find and apply avatar
if(profile.attachments.length > 0) {
if(profile.attachments) {
var digest = null;
for (var i = 0; i < profile.attachments.length; i++) {