fixed following/unfollowing

This commit is contained in:
jeena 2013-07-17 03:01:43 +02:00
parent 16d7016e29
commit 771243a75f
4 changed files with 44 additions and 19 deletions

View file

@ -49,7 +49,11 @@ function(Core, APICalls, HostApp, URI) {
Timeline.prototype.newStatus = function(_statuses, append) {
for (var entity in _statuses.profiles) {
bungloo.cache.profiles[entity] = _statuses.profiles[entity];
if (_statuses.profiles[entity] != null) {
bungloo.cache.profiles[entity] = _statuses.profiles[entity];
} else {
bungloo.cache.profiles[entity] = {};
}
}
statuses = _statuses.posts;