Add identity_change handlers to resolve the ownership issues of comments, subscription, items and tasks.

This commit is contained in:
Tim Almdal
2009-10-31 14:23:05 -07:00
parent 80b892915f
commit 903b5f6f67
3 changed files with 24 additions and 3 deletions
@@ -56,6 +56,10 @@ class notification_event_Core {
Database::instance()->query("DELETE FROM {subscriptions} where user_id = {$user->id}");
}
static function identity_provider_changed($old_provider, $new_provider) {
Database::instance()->query("DELETE FROM {subscriptions}");
}
static function comment_created($comment) {
try {
if ($comment->state == "published") {