diff --git a/src/controllers/LikesController.ts b/src/controllers/LikesController.ts index 12e131f..eba2aee 100644 --- a/src/controllers/LikesController.ts +++ b/src/controllers/LikesController.ts @@ -3,6 +3,7 @@ import { LikesType, LikesHelper } from "../helpers/LikesHelper"; import { UserHelper } from "../helpers/UserHelper"; import { GroupsAccessLevel } from "../entities/Group"; import { UserLike } from "../entities/UserLike"; +import { NotificationsHelper } from "../helpers/NotificationsHelper"; /** * Likes controller @@ -41,7 +42,8 @@ export class LikesController { id = await h.postPostIDWithAccess("id"); type = LikesType.POST; - // TODO : delete any notification targetting this user about the post + // Delete any notification targetting this user about the post + await NotificationsHelper.DeleteAllPostsNotificationsTargetingUser(h.getUserId(), id); break;