diff options
author | Evan Prodromou <evan@status.net> | 2009-12-12 16:15:23 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-12 16:15:23 -0500 |
commit | 1ec54d3433a79f56c14c0a99114bb1e607348899 (patch) | |
tree | 608f3340cf1db5ba38dfadf97babab91ad924ea4 /classes/Notice.php | |
parent | 698b28c95c9d4fa5cb404395b2c90b10a438fcd5 (diff) |
add statuses/retweeted_to_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 a7b0f8cdb..7d2b898d2 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -483,6 +483,20 @@ class Notice extends Memcached_DataObject $original->free(); unset($original); } + + $ni = new Notice_inbox(); + + $ni->notice_id = $this->id; + + if ($ni->find()) { + while ($ni->fetch()) { + $tmk = common_cache_key('user:repeated_to_me:'.$ni->user_id); + $cache->delete($tmk); + } + } + + $ni->free(); + unset($ni); } } } |