We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5f051341 authored by Evan Prodromou's avatar Evan Prodromou

blow inboxes

darcs-hash:20081023203505-5ed1f-9fda1f30a6eb271966b7eaf42968103761b33b22.gz
parent 561140fb
......@@ -60,6 +60,7 @@ class Notice extends Memcached_DataObject
function delete() {
$this->blowCaches();
$this->blowFavesCache();
$this->blowInboxes();
parent::delete();
}
......@@ -359,5 +360,17 @@ class Notice extends Memcached_DataObject
return;
}
# Delete from inboxes if we're deleted.
function blowInboxes() {
$inbox = new Notice_inbox();
$inbox->notice_id = $this->id;
$inbox->delete();
return;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment