diff options
author | Evan Prodromou <evan@status.net> | 2009-12-12 16:00:27 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-12 16:00:27 -0500 |
commit | cfe67a9c0192129448ea3f0b98aadf49e962fd4d (patch) | |
tree | 7079083b93c83af8d4649ca613a88731f5ca8f86 /classes/Notice.php | |
parent | 138ce0cd05e2e59c79b29f5eeea5c11d1e56e931 (diff) |
add statuses/retweets_of_me to API
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 6a701ae0c..eb611f314 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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); + } } } } |