forked from GNUsocial/gnu-social
blow inboxes
darcs-hash:20081023203505-5ed1f-9fda1f30a6eb271966b7eaf42968103761b33b22.gz
This commit is contained in:
parent
561140fbed
commit
5f05134110
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user