Delete post change logs before removing posts

This commit is contained in:
Tim
2025-09-17 13:30:58 +08:00
parent 9101ed336c
commit 5d499956d7
4 changed files with 8 additions and 0 deletions

View File

@@ -888,6 +888,7 @@ public class PostService {
}
}
String title = post.getTitle();
postChangeLogService.deleteLogsForPost(post);
postRepository.delete(post);
if (adminDeleting) {
notificationService.createNotification(author, NotificationType.POST_DELETED,