add statuses/retweets_of_me to API

This commit is contained in:
Evan Prodromou
2009-12-12 16:00:27 -05:00
parent 138ce0cd05
commit cfe67a9c01
4 changed files with 197 additions and 0 deletions

View File

@@ -463,6 +463,20 @@ class Notice extends Memcached_DataObject
$user->free();
unset($user);
}
$original = Notice::staticGet('id', $this->repeat_of);
if (!empty($original)) {
$originalUser = User::staticGet('id', $original->profile_id);
if (!empty($originalUser)) {
$ouk = common_cache_key('user:repeats_of_me:'.$originalUser->id);
$cache->delete($ouk);
$originalUser->free();
unset($originalUser);
}
$original->free();
unset($original);
}
}
}
}