Added possibility to disable Social Posts
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@175996 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7580d3bbbe
commit
04c91b534d
|
@ -634,7 +634,7 @@ public class CommonServiceUtils {
|
|||
new ManageTimeSeriesThread(record, futureName, username, catalogue, context, token).start();
|
||||
|
||||
// write a post if the product has been published in grsf context
|
||||
if(!isUpdated && context
|
||||
if(catalogue.isSocialPostEnabled() && !isUpdated && context
|
||||
.equals((String) contextServlet.getInitParameter(HelperMethods.PUBLIC_CONTEX_KEY))) {
|
||||
new WritePostCatalogueManagerThread(context, token, futureTitle, itemUrlForThread, true,
|
||||
new ArrayList<String>(), authorFullname).start();
|
||||
|
|
Loading…
Reference in New Issue