Added socialPost=true to the 'approveItem' request

This commit is contained in:
Francesco Mangiacrapa 2023-02-06 15:14:02 +01:00
parent c0e0c2814c
commit c124ed4177
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
#### Enhancements
- [#23903] Catalogue Moderation: allow to send a message to the moderators on reject to pending operation
- [#24519] Added social_post=true to approve request
## [v1.1.1] - 2022-10-27

View File

@ -356,7 +356,7 @@ public class CkanContentModeratorServiceImpl extends RemoteServiceServlet implem
List<String> approvedListItems = new ArrayList<String>();
for (String itemName : itemNames) {
try {
cmsInstance.approveItem(itemName, moderatorMessage);
cmsInstance.approveItem(itemName, moderatorMessage, true);
approvedListItems.add(itemName);
} catch (Exception e) {
LOG.warn("Error when approving itemName: " + itemName, e);