mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 13:10:48 -04:00
Add identity_change handlers to resolve the ownership issues of comments, subscription, items and tasks.
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user