]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
blow inboxes
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 23 Oct 2008 20:35:05 +0000 (16:35 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 23 Oct 2008 20:35:05 +0000 (16:35 -0400)
darcs-hash:20081023203505-5ed1f-9fda1f30a6eb271966b7eaf42968103761b33b22.gz

classes/Notice.php

index 17e0c5a0f96068d630c244d990f8a5f2a5931a52..a3886d16580421cd411d9dd4ad214f6a7717b61a 100644 (file)
@@ -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;
+       }
+       
 }