1
0
Fork 0

Merge pull request #12280 from MrPetovan/bug/11804-delete-notifications-item

Remove related notifications when marking an item for deletion
This commit is contained in:
Philipp 2022-11-27 09:01:28 +01:00 committed by GitHub
commit b56e6f4b5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 0 deletions

View file

@ -385,6 +385,9 @@ class Item
Post\ThreadUser::update($item['uri-id'], $item['uid'], ['hidden' => true]);
}
DI::notify()->deleteForItem($item['uri-id']);
DI::notification()->deleteForItem($item['uri-id']);
Logger::info('Item has been marked for deletion.', ['id' => $item_id]);
return true;