diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-23 06:55:46 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-23 06:55:46 -0700 |
commit | 7bdea95ccbf31cf9c9191a93c44dedb22f1fd3df (patch) | |
tree | 8404166f5472daf677424f2304bda983b4e5a421 /classes/Notice.php | |
parent | fd9d520aeb52f7f3a3fe7c242fbe16078de1bc6e (diff) |
Fix to make blowing of replies stream cache more consistent when receiving replies. (Was being done at mail notify time instead of at save time for local replies; now moved to reply save time internally so it can't get forgotten)
Diffstat (limited to 'classes/Notice.php')
-rw-r--r-- | classes/Notice.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 4cf12fc6f..c4a316888 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -985,8 +985,6 @@ class Notice extends Memcached_DataObject $reply->profile_id = $user->id; $id = $reply->insert(); - - self::blow('reply:stream:%d', $user->id); } } @@ -1052,6 +1050,7 @@ class Notice extends Memcached_DataObject throw new ServerException("Couldn't save reply for {$this->id}, {$mentioned->id}"); } else { $replied[$mentioned->id] = 1; + self::blow('reply:stream:%d', $mentioned->id); } } } @@ -1107,7 +1106,6 @@ class Notice extends Memcached_DataObject foreach ($recipientIds as $recipientId) { $user = User::staticGet('id', $recipientId); if (!empty($user)) { - self::blow('reply:stream:%d', $recipientId); mail_notify_attn($user, $this); } } |